You are here: Re: Including one stylesheet inside another « HTML « IT news, forums, messages
Re: Including one stylesheet inside another

Posted by Adrienne Boswell on 02/02/08 04:26

Gazing into my crystal ball I observed Chris <>
writing in news:47a3a23a$0$14083$

> I've got a puzzling problem.
> We have multiple sites that use the same large css file. I just make a
> copy of it for each site. For each site, though, I'd like to customize
> couple small things like link color.
> I could just edit each copy of the css file, but that would make it
> to maintain when I want a change to appear in all sites.
> The ideal solution would be to use an <include> in the css file:
> my-big-file.css would be:
> #mystyle {
> whatever:10px;
> }
><include include="my-custom-css.css">
> Then for each site, "my-custom-css.css" could be different.
> The obvious solution here is to break it up into two different css
> and include both in every page in every site. This would affect a lot
> pages unnecessarily, though, and would be cumbersome if I ever had to
> break it into 2, 3, or 4 small css files. A single include statement
> one file would be a lot cleaner.
> Is there some way to do this kind of include?

Separate style from color - one stylesheet that only does positioning,
etc., and another that does color. For example:

Site A:
<link type="text/css" href="style.css" rel="stylesheet">
<link type="text/css" href="style_site_a.css" rel="stylesheet>

Site B:
<link type="text/css" href="style.css" rel="stylesheet">
<link type="text/css" href="style_site_b.css" rel="stylesheet>

Etcetera, etcetera, etecetera (10 points for the source).
Adrienne Boswell at Home
Arbpen Web Site Design Services
Please respond to the group so others can share



[Reply to this message]

Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация