![]() |
another CSS question - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: another CSS question (/showthread.php?tid=84604) |
another CSS question - bazookaman - 09-18-2009 Is there a way to have 2 body rules in one stylesheet? I have a homepage and subpages that use 2 different backgrounds. Other than that, the sheets are just about the same. Is there anyway to specify the 2 different images for the 2 types of pages? Re: another CSS question - wolfcry911 - 09-18-2009 simply id one (or both) of them Re: another CSS question - M A V I C - 09-18-2009 ^^ probably the best way. Or you could do it with a second stylesheet. Or put the differences in the page head, or use PHP (or whatever language) to choose between the two, or set a cookie... Re: another CSS question - bazookaman - 09-18-2009 cool. i didn't realize you could do that for the body tag. works like a charm! |