Do you code your CSS in inline or block format?

Inline
0% (0 votes)
Block
100% (7 votes)
Total votes: 7
decibel.places's picture

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.