By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

Any CSS Organization Tips

P: n/a
Does anyone have any tips for standard properties order. Right now I
use: Size, positioning, padding, border, text, background, others. I was
trying to use them in order of what I use most often. Then I do the
elements alphanumeric within those groups. I know it is a bit anal, but
I would like to have some reasoning behind it so that my group can all
be on the same page, for ease of use.

Any ideas or suggestions are appreciated.

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Heath <hj******@email.moc> wrote in
news:3f**********************@news.skynet.be:
Does anyone have any tips for standard properties order. Right now I
use: Size, positioning, padding, border, text, background, others. I was
trying to use them in order of what I use most often. Then I do the
elements alphanumeric within those groups. I know it is a bit anal, but
I would like to have some reasoning behind it so that my group can all
be on the same page, for ease of use.


I'd say that the actual order doesn't matter as much as the consistency of
it. Pick whatever seems good to you and then stick with it. Obviously it
makes sense to group certain properties together: for example, position
should be immediately accompanied by offsets, margin and padding belong
together, background image properties should go together, etc.
Jul 20 '05 #2

P: n/a
*Heath*:

Does anyone have any tips for standard properties order.


<news:b9***********@ariadne.rz.tu-clausthal.de>

--
"Right way turning, Listen we are learning.
Head's full of noise, Chicken's got no choice.
Heads are rollin', Chicken blood is stolen.
The rest of the chicken wants a picke-nicken" Guano Apes - We use the Pain
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.