Which do you prefer?
As a designer / moderate programmer I am constantly looking at how others tend to write their CSS code as well as their HTML. It is always intriguing to see how they use different techniques to accomplish the same thing others are doing. One tool that I use every single day is the FireFox Web Developer plug-in. It allows the anyone to view the current CSS files used on a page and modify them to see how the changes affect the design. There are usually two different formats of CSS that I see for the most part.
1. In-line CSS is probably the best way to describe it. It is where the CSS is written like this:

2. Dreamweaver CSS is the only other way I know to describe it. CSS looks like this:

My question is which one do you prefer to look at or program with? Does it really make a difference? Is one easier to do than the other?
One Response to “Which do you prefer?”
Leave a Reply





Rich on February 28th, 2009
I know that doing “inline” CSS cuts down on white-space and that it loads faster, but I prefer to use the “Dreamweaver” approach. I find it easier to read and find the attribute that I’m looking for. Admittedly, though, if an element only has 2 or 3 attributes on it, then I’ll keep it inline.