Previous Message
Next Message

when are 2 external css called for?

Sent by Kepler Gelotte on 11 April 2008 04:04


This is a multi-part message in MIME format.

--Boundary_(ID_uwcshHjCgCvvxGl/OKxCGQ)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT

> I have 2 pages ( so far) in a site which share the same structure or  
> design "grid" but have differences with some of the visual elements,  
> such as differing background colors, or different link treatments...

Hi John,

A trick I use to use different CSS rules in a page is to add an
id="page_name" to each page's <body> tag. In cases where one page's style is
different from another, define multiple CSS rules:

body#home {background-color: #cc0; color: #000;}
body#about {background-color: #fff; color: #060;}

Then leave body#page_name off all CSS rules that stay the same between
pages.


Best regards,
Kepler Gelotte
Neighbor Webmaster, Inc.
156 Normandy Dr., Piscataway, NJ 08854
www.neighborwebmaster.com
phone/fax: (732) 302-0904


--Boundary_(ID_uwcshHjCgCvvxGl/OKxCGQ)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
--Boundary_(ID_uwcshHjCgCvvxGl/OKxCGQ)--
Previous Message
Next Message

Message thread:

Possibly related: