Posts: 17,885
Threads: 2,316
Joined: May 2025
Reputation:
0
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?
Posts: 1,339
Threads: 101
Joined: Apr 2025
simply id one (or both) of them
Posts: 21,860
Threads: 1,734
Joined: May 2025
Reputation:
0
^^ 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...
Posts: 17,885
Threads: 2,316
Joined: May 2025
Reputation:
0
cool. i didn't realize you could do that for the body tag. works like a charm!