Depends mostly on complexity, if it's more than a coupla statements, I think block is clearer.
I suppose the one line code loads a bit faster - but not enough to sacrifice clarity.
Now, how about block styles...
do you
element { style1; style2; }
or no indent like
element { style1; style2; }
or separate the braces like
element { style1; style2; }
???
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
decibel.places posted this at 00:03 — 18th September 2008.
He has: 1,494 posts
Joined: Jun 2008
Well, I use both.
Depends mostly on complexity, if it's more than a coupla statements, I think block is clearer.
I suppose the one line code loads a bit faster - but not enough to sacrifice clarity.
Now, how about block styles...
do you
element {
style1;
style2;
}
or no indent like
element {
style1;
style2;
}
or separate the braces like
element
{
style1;
style2;
}
???
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.