CSS Help - CSS help Box Model Tutorial



CSS box model

In an attempt to understand CSS layout and after a great deal of css tutorials everything was made clear by the box model diagram presented by Hicks Design. I have attempted to break down this example and present it in a CSS Help style.

The diagram below helps visualise CSS positioning. For the purpose of this tutorial each element of the box model is shown as a rectangle.

CSS box model hierachy

The main content area which is shown as text is surrounded by padding, border and margins.

With CSS designers can create style sheets that define how different elements can such as headers, links, colours and fonts appear.


What's new in CSS

References



Latest CSS news

Web Standards Awards :

130/11/05 - CSS Gallery

New CSS gallery featuring sites designed using cascading style sheets.

 

New CSS Print media tutorial added:

15/08/04 - CSS print media

Help and tutorial exploring the use of cascading style sheets to control the output of your web pages to printers