Forum Moderators: not2easy
I understand you have a generic background image that is used on all pages, and in different sections (cow, pig, etc) a different relevant image is "overlaid" on top of that generic background to create clickable link. The generic image is a background-mage set on .header via css. The other images are hard-coded into the html for each page.
Now, if I have that right, this isn't a css issue because the images that change are coded into the HTML. As the changing images aren't provided by the css, they aren't in a css file, so won't be affected by combining the existing css files.
I now have more html files using the "sheep css" and none using "pig css" which is a good thing.Fantastic
The body tag is different in the templates. (doh!)So now we're talking about a background-image for body (not a background-image for .header)? This may look like a problem, but should really be an opportunity. You're correct - you don't want/can't have two competing rule-sets for body in the css file, but you should be able to order a different background-image.
...
However, the image that I use for a background in the body tag is the same throughout. No big deal, but not found a way yet of having two body tags in the css file.
So now we're talking about a background-image for body (not a background-image for .header)?
This may look like a problem, but should really be an opportunity. You're correct - you don't want/can't have two competing rule-sets for body in the css file, but you should be able to order a different background-image.
I still don't know how much you can edit the html, therefore whether it is possible to edit the <body> element. If so, the easiest would be to put a class on the body as in the example I posted above. Your basic, generic body { ...} style remains the same, just set the different background-image on each class.
For that we need some code - so feel free to post the opening <body ...> from the html for each of the different bodies.
have complete control over the html and can edit any partThe week keeps getting better!
I would usually class too - but suggested an ID here because I don't know what else is lurking in the code. Probably nothing