-
Book Overview & Buying
-
Table Of Contents
LESS WEB DEVELOPMENT COOKBOOK
By :
Less enables you to write your CSS code effectively with the DRY principle of software programming in mind, but Less does not dictate to you in regard to how to build your CSS code. CSS3 extends the old CSS with new selectors, text effects, background gradients, and animations. The power of CSS3, the new functionalities, and the high acceptance of mobile devices using HTML5 and CSS3 make them the standard for modern web design. On the other hand, CSS3 makes coding CSS more complex, and some properties are related to others or can be set to lists of values. To support the wide range of browsers, you can't ignore vendor-prefixes, as described in the Using mixins to set properties recipe in Chapter 3, Using Variables and Mixins. Less provides you with mixins to set these properties, but you will have to create these mixins yourself. Happily, you do not have to reinvent the wheel for every new project. Others already have written many mixins that you can reuse in your projects...
Change the font size
Change margin width
Change background colour