Quote:
Originally Posted by jason_bristol
'funkdaddu' you have given me an idea to duplicate my external sheets and just change the body style on them and then change the linked style sheet for each page i want to change. I think that will work. thanks.
|
Why duplicate a stylesheet when you can just add one, tiny stylesheet? If you change a style in your main one, you'll have to make that change in your duped one as well. It's a huge pain (I've made that mistake in the past with print styles). CSS is called Cascading stylesheets for a reason. There's a hierarchy that allows you to override other styles. So why make more work for yourself?
If you want only 1 stylesheet for everything, then gringo's suggestion is the way to go. Name all your pages's body with an id or class, then create a style for each.
Code:
#main {
background-image: url("mainbg.jpg");
}
#contact {
background-image: url("contactbg.jpg");
}
#aboutus {
background-image: url("aboutusbg.jpg");
}
etc...
And the benefit of that way is you can use that to specify other styles, like if you wanted all of the links on your contact page to be underlined, and not on the others:
Code:
#contact a{
text-decoration: underline;
}
And as for the 2 backgrounds, I think I did something similar to what you were talking about with gringo's method here: Student Transportation of America - check the source, I used a BODY background and a DIV called "bg".
Last edited by funkdaddu; 08-04-2006 at 12:11 PM..
|