Book Image

Less Web Development Cookbook

Book Image

Less Web Development Cookbook

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using CSS Reset with Less


HTML elements without styles are styled with the default browser styles. Different browsers style HTML elements differently, by default, which is one of the most important reasons of having cross-browser issues. CSS Reset sets the default style of HTML elements to the same value (or output) for all browsers.

Getting ready

When you start a project, you should also think about the CSS Reset that you will have to use. Writing CSS Reset yourself seems like reinventing the wheel again. On the other hand, using a random CSS Reset code without any research may cause unwanted effects or unnecessary process time for your project. Your choice should depend on using HTML5 or not, the browsers that you will have to support, and so on. At http://www.cssreset.com/, you can find and download the most popular CSS Resets. To make a motivated choice, you can read the Which CSS Reset Should I Use? section on that website, too.

Download the CSS file (with the .css extension) of the CSS...