Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
another CSS question
#1
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?
Reply
#2
simply id one (or both) of them
Reply
#3
^^ 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...
Reply
#4
cool. i didn't realize you could do that for the body tag. works like a charm!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)