Using the grid mixins to build a semantic layout
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 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.
Note
You can watch the result by visiting http://localhost/semanticgrid.html
, and you will find the Less files of this example in the /less/semanticgrid/
folder.
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 (wrapper). All modern browsers handle the body 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, adding copyrights under your layout; of course, the body...