iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old March 12th, 2008, 09:30 AM   #1
New Member
 

Join Date: Mar 2008
Location: Australia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 vampyrus is on a distinguished road
Css Background problems

Is it possible to have a single CSS govern multiple pages that all have different backgrounds ??
I would like to not have to tag the background into the html if I can help it ...
vampyrus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 12th, 2008, 09:39 AM   #2
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,077
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Css Background problems

body#pageID {}

for each page and in the HTML <body id="pageID"> this also makes it easier to control navigation based on per pages basis.

i.e. #nav ul li a {} and then you could do something like #pageID #nav ul li a {} will work on any child of the body. etc etc
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 12th, 2008, 09:42 AM   #3
Elite Veteran
SuperMember
 
welshstew's Avatar
 

Join Date: May 2007
Location: inside the outside
Posts: 3,910
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Rep Altering Power: 0 welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute
Re: Css Background problems

yes, just set up different id's for your backgrounds then n your code ensure you pull through the appropriate id into the body tag

ie.
Code:
body { background-color: #fff;}
body #bluebackgroundwithfunckystripes {background-image: url('bluebackgroundwithfunckystripes.gif')}
body #pinkpolkadotbackground {background-image: url('pinkpolkadotbackground.gif')}
page 1:
HTML Code:
<html>
<head></head>
<body id="bluebackgroundwithfunckystripes">
</body>
</html>
page 2:
HTML Code:
<html>
<head></head>
<body id="pinkpolkadotbackground">
</body>
</html>
something like that
welshstew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 13th, 2008, 04:34 AM   #4
New Member
 

Join Date: Mar 2008
Location: Australia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 vampyrus is on a distinguished road
Re: Css Background problems

hmmm ... dont know what i'm doing wrong ... it's not working ....
sorta tried to follow welsh's instructions ....

will hav to play with it some more.
vampyrus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background Oak Graphic Specifics 12 March 1st, 2008 08:37 PM
Problems with the background sbogde HTML, XHTML and CSS 4 February 6th, 2008 09:18 AM
Background color problems with relative positioning kirkham85 HTML, XHTML and CSS 3 May 12th, 2007 06:53 PM
Aligh and background problems with Opera and Firefox KiReSt HTML, XHTML and CSS 1 June 26th, 2006 04:08 PM
Background and Resolution compatibility, My background gets cut off Funion HTML, XHTML and CSS 1 December 4th, 2005 12:42 AM


Search Engine Optimization by vBSEO 3.2.0 RC8