View Single Post
Old 06-13-2009, 11:31 PM   #19 (permalink)
CoryMathews
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

@adamdecaf

I do something similar. instead of:

PHP Code:
#content {
    
color#FFFFFF;
}

      
#content a {
           
color#009900;
      
}

            
#content a:hover {
                  
color#00CC00;
            
}

      
#content p {
           
clearleft;
      }

#footer {
    
border1px 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( 
== ) { 
      echo 
"Question"
      for(
010x++) {
        
x++;
        print 
x;
      }
    } 
  }

CoryMathews is offline  
Reply With Quote