The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

CSS File Structure

espmartin

New Member
affiliate
There are many ways to structure your exterenal CSS rules. What I do
is place style style rules inline, separating each block with line spaces:
Code:
div ul {list-style: none; margin: 1em 0;}
p ul li {display: inline; color: #000;}
Some people will do this:
Code:
div ul {
     list-style: none; 
     margin: 1em 0;
     }
p ul li {
     display: inline;
     color: #000;
     }
Also, you can group each selector by their function. For example,
you can group navigation elements together, followed by typography, etc.

What I do is simply list them according to source code placement.
How do you all do yours?
 
I use second option but group styles elements on one line:
Code:
div.something
{
	border-top:1px solid #bbb;
	padding:0;
	margin:0;
}

As style for the border it this example.

I hope this make sense...
 
banners
Back