Quote:
Originally Posted by hobnail
If you only need to set the top non-zero, no need to list them all, you could do
Code:
{
margin: 0;
margin-top: 1em;
}
|
Ah, that does work! I've wondered. I'll use that now

.
Quote:
I often see style sheets giving all four as zero (margin-top, etc.) and wonder if they know about using just margin to set all four, either one zero or four zeroes.
|
I'm happy to use "margin: X 0 0 0" for specifying a top margin but I always find the order of the last three quite nonintuitive. I notice in your example you've said "top, etc." That's about where my brain gives up too

.