independent and unofficial
Prince fan community
Welcome! Sign up or enter username and password to remember me
Forum jump
Forums > General Discussion > HTML question....Please help me.
« Previous topic  Next topic »
  New topic   Printable     (Log in to 'subscribe' to this topic)
Author

Tweet     Share

Message
Thread started 03/11/05 6:39pm

AnckSuNamun

avatar

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?
rose looking for you in the woods tonight rose Switch FC SW-2874-2863-4789 (Rum&Coke)
  - E-mail - orgNote - Report post to moderator
Reply #1 posted 03/11/05 7:31pm

sabaisabai

avatar

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
Reply #2 posted 03/11/05 7:37pm

AnckSuNamun

avatar

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. woot!
rose looking for you in the woods tonight rose Switch FC SW-2874-2863-4789 (Rum&Coke)
  - E-mail - orgNote - Report post to moderator
Reply #3 posted 03/11/05 7:54pm

Tom

avatar

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
Reply #4 posted 03/11/05 8:01pm

AnckSuNamun

avatar

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 sad 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]
rose looking for you in the woods tonight rose Switch FC SW-2874-2863-4789 (Rum&Coke)
  - E-mail - orgNote - Report post to moderator
Reply #5 posted 03/11/05 9:40pm

Tom

avatar

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 sad 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
  New topic   Printable     (Log in to 'subscribe' to this topic)
« Previous topic  Next topic »
Forums > General Discussion > HTML question....Please help me.