A box in CSS has the following primary property/values ...
- Background color
- Z-index (layer order)
It is especially important to understand how CSS handles the first 5 of these. Height, width, padding, border and margin combine to create the total area that a box inhabits (see diagram opposite).
Default property values
Even if you deliberately set no property/values for height, width, padding and margin, and no box is visible (no border and no background colour set), your elements will still be inside an invisible box with default property/values (I think this is 10pixels for padding and margin, anyone know different?).