Re: Re: Good solution for managing stylesheets

Frank Manno
Fri, 19 Aug 2005 23:03:19 -0000

> In this particular case I''m wondering if the effort is worth it.
You may
> get better results, all in all, if you put everything into one
> stylesheet. The consolidated stylesheet is probably bigger than any
> combination of stylesheets you would use on one page otherwise, but it
> has the advantage that it requires just one server hit.

I''m with Michael on this one... Except in my case, the use of a single
access point for the CSS is much easier to maintain.  What I usually
do is something like this:

Main CSS:
@import url("master.css");
@import url("ie_only.css");

The main CSS file takes care of importing the others, which allow me
to separate IE-specific styles into their own stylesheet.  You could
also have a stylesheet for forms, tables, etc.

Although these are separate stylesheets, you only need to link to your
main CSS file within the Rails code.  It''s much easier to maintain
this way.

Just my $0.02.

--
- Frank
FrankManno.com

<a
href="http://www.spreadfirefox.com/?q=affiliates&amp;id=2496&amp;t=1">Get
Firefox!