CSS Syntax and Page Layout
There are several methods allowing to position HTML elements on the page in CSS.
Some of them are more widely used than others, some of them are more classical ... and all of them have their advantages and shortcomings.
The best way to learn is to try them out and make up your mind!
Have a first glance on the links provided below, then move towards the exercise... and return to the links to answer the questions.
We'll work on the page on which we drew boxes in the exercise 2. With colors added to the elements, it now looks like this:
New convenient modules, such as Flexible Box, allow to build more efficiently the page layout. However, as they are not currently supported by all browsers, we'll expose them later, in an advanced CSS section of the course.
'Playing' with margins may also help you to set up the layout!
The types of layouts sum up in a few words and a short video.
<< PreviousWords cloud created with tagul.com - images sourced from flickr.com