View Single Post
Old 07-19-2022, 04:26 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,980
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Tex2002ans View Post
Hmmm, okay. I wasn't aware of that one.

I tend to avoid many of the shorthands, like margin, and instead specify all 4 margins separately (if needed).

I believe it's more human-readable, instead of having to decipher EXACTLY what variables are what.

Examples from "margin" at MDN:

Code:
/* Apply to all four sides */
margin: 1em;

/* vertical | horizontal */
margin: 5% auto;

/* top | horizontal | bottom */
margin: 1em auto 2em;

/* top | right | bottom | left */
margin: 2px 1em 0 auto;
vs. something like:

Code:
blockquote {
	margin-top: 1em;
	margin-bottom: 2em;
}
Whenever I run across the shorthand, especially that 3rd or 4th one, I'm always scratching my head trying to remember which number stands for which variable.

When you have it fully typed out, there's no confusion there.
I agree. I don't like the margin shorthand. It's not as easy to read as it is the full separate margin lines. Also, if I am not mistaken, the nook doesn't like margin. I know it didn't used to like it unless that's since been fixed.
JSWolf is offline   Reply With Quote