Sent by Davezilla on 14 September 2004 12:12
> I would say your CSS is about a hundred times more readable. If your
> coworker doesn't even understand selector grouping, that's his problem,
> but the constantly recurring declarations in his file make navigation a
> nightmare. Not to mention that your code is grouped and commented, while
> his...
>
> In addition, your code does more. His code looks very much like it was
> made to supplement a table-driven design, while yours obviously forms a
> complete CSS-driven design.
>
> Sebastian Redl
I totally concur with what has been said and would add one more point
I have not seen raised here. As "pretty" as the code looks to have
each declaration on one line as your coworker did, it is slower to
load and adds page weight. Yours is quicker to load, but could be
quicker still.
Read some of the books on site optimization and the one thing they all
agree on is condensing the CSS as much as possible. What we do at the
ad agency I work at, is write out the CSS with single line
declarations, as Chris mentioned, but then we optimize the code by
crunching the declarations to a single line each for production (white
space, tabs and multiple returns add kilobytes). Some applications,
like BBEdit, have a function to optimize code for output for this very
reason. Just make sure to save both versions of the code; one for
maintenance and one for production.
You're on the right track. You get the gold star; your coworker gets
the castor oil. More speed tweaks on this page (scroll to "CSS
Tweaks") http://www.websiteoptimization.com/speed/tweak/
--
Color me gone,
Davezilla
[EMAIL-REMOVED]
http://www.davezilla.com
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/