April 2005
Intermediate to advanced
336 pages
6h 33m
English
One of the coolest things about CSS is that you can style features such as margins, borders and padding. It's not even just being able to style such things that I find so exciting, but the flexibility we have with the styles available.
Consider that all elements have a margin, a border, and padding within the CSS visual model. The reason for this is that every element creates a box. Two types of boxes exist: block boxes (related to block-level elements) and line boxes (related to inline boxes). Figure 11-1 shows the difference.
Figure 11-1. Examining boxes in the CSS visual model.

I've added a ...
Read now
Unlock full access