06-13-2009, 11:31 PM
|
#19 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
|
@adamdecaf
I do something similar. instead of:
PHP Code:
#content {
color: #FFFFFF;
}
#content a {
color: #009900;
}
#content a:hover {
color: #00CC00;
}
#content p {
clear: left;
}
#footer {
border: 1px solid #000000;
}
I would do
PHP Code:
#content { color:#FFF; }
#content a { color:#090; }
#content a:hover { color:#0C0; }
#content p { clear:left; }
#footer { border:1px solid #000; }
I always keep the css to 1 line. When you start spacing them out the files get so damn long. We widescreen monitors for a reason. Use them. Also if you put the attributes in alpha order its even easier to find them. (ie border, color, float, width..)
Same thing when I am programming I would do it in the format of
PHP Code:
class blah
{
function hello
{
if( a == b ) {
echo "Question";
for(x = 0; x < 10; x++) {
x++;
print x;
}
}
}
}
|
|
|
|