View Single Post
Old 01-26-2020, 10:51 PM   #19
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by hobnail View Post
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 .
snarkophilus is offline   Reply With Quote