-
Book Overview & Buying
-
Table Of Contents
Less Web Development Essentials (Second Edition)
By :
In the preceding section, you used Preboot's grid mixins to build grid classes. In the final section of this chapter, you will use these mixins to build a semantic layout.
You can use the same example that we used earlier. Before you start, you should undo the changes made in the examples with media queries. You don't need these media queries here because the grid is responsive by default.
You can watch the result by visiting http://localhost/semanticgrid.html, and you will find the Less files of this example in /less/semanticgrid/.
In the current example layout, the container styles are applied to the body element. Nowadays, there seems to be no reason to add an extra div container (or wrapper). All modern browsers handle the body element as a normal block-level element. If you prefer to add an extra wrapper for some reason, please do so. A plausible reason to do so would be, for instance, to add copyrights under your layout; of course,...
Change the font size
Change margin width
Change background colour