Author | Message |
HTML question....Please help me. I have a web page project due soon. It's required that all 4 of our pages are linked by the same external style sheet. Is it possible for me to have a different background for each page? looking for you in the woods tonight Switch FC SW-2874-2863-4789 (Rum&Coke) | |
- E-mail - orgNote - Report post to moderator |
Yes, it's possible. Either specify the background individually within each HTML file (eg ), or if that's not allowed, then give each web page it's own ID and create a different background for each ID in the stylesheet.
Something like etc, then in your stylesheet you'd have #page1 { background: blue; } #page2 { background: red; } etc. I *think* that should work, not sure about giving an id to a tag though. AnckSuNamun said: I have a web page project due soon. It's required that all 4 of our pages are linked by the same external style sheet. Is it possible for me to have a different background for each page? Life it ain't real funky unless you got that orgPop. | |
- E-mail - orgNote - Report post to moderator |
sabaisabai said: Yes, it's possible. Either specify the background individually within each HTML file (eg ), or if that's not allowed, then give each web page it's own ID and create a different background for each ID in the stylesheet.
Something like etc, then in your stylesheet you'd have #page1 { background: blue; } #page2 { background: red; } etc. I *think* that should work, not sure about giving an id to a tag though. AnckSuNamun said: I have a web page project due soon. It's required that all 4 of our pages are linked by the same external style sheet. Is it possible for me to have a different background for each page? ok. I'll try that. Thank You. looking for you in the woods tonight Switch FC SW-2874-2863-4789 (Rum&Coke) | |
- E-mail - orgNote - Report post to moderator |
I've never tried to do this, but you may be able to declare an inline style on the body tag, and give it importance. Or you could leave out a background declaration on the main style sheet, then attach an additional seperate style sheet for each page, that defines a background image.
It's hard to get a DIV to fill up the whole background because many browsers won't stretch it 100% vertically. | |
- E-mail - orgNote - Report post to moderator |
Tom said: I've never tried to do this, but you may be able to declare an inline style on the body tag, and give it importance. Or you could leave out a background declaration on the main style sheet, then attach an additional seperate style sheet for each page, that defines a background image.
It's hard to get a DIV to fill up the whole background because many browsers won't stretch it 100% vertically. we can't have seperate style sheets....just one I wish my prof. would let us use internal style sheets instead....they're much easier. It's required that we use the div tag somewhere on our pages, but I agree it would be hard to use it for the whole background. I've only used the div tag for a paragraph. I guess it doesn't hurt to try it though. typo [Edited 3/11/05 20:02pm] looking for you in the woods tonight Switch FC SW-2874-2863-4789 (Rum&Coke) | |
- E-mail - orgNote - Report post to moderator |
AnckSuNamun said: Tom said: I've never tried to do this, but you may be able to declare an inline style on the body tag, and give it importance. Or you could leave out a background declaration on the main style sheet, then attach an additional seperate style sheet for each page, that defines a background image.
It's hard to get a DIV to fill up the whole background because many browsers won't stretch it 100% vertically. we can't have seperate style sheets....just one I wish my prof. would let us use internal style sheets instead....they're much easier. It's required that we use the div tag somewhere on our pages, but I agree it would be hard to use it for the whole background. I've only used the div tag for a paragraph. I guess it doesn't hurt to try it though. typo [Edited 3/11/05 20:02pm] Another option would be; within the style sheet, make the path to the image relative. Then save each page in a seperate folder with a different background graphic. Each background graphic would have to have the same name. | |
- E-mail - orgNote - Report post to moderator |