Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
what is the best way...
Old 12-11-2006, 12:12 PM what is the best way...
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
i was wondering what the best way to have an image change on a webpage is using css.

What i mean is this, page 1 has 4 links, each link going to a different page. On each of the four pages there is a different image with some text.

Should i just create a new style sheet for each page with the background image changed for each div tag, or is there a better way to do this?

I "think" I will have the images in the same place on each of the 4 pages, it will just change. I have to decide on that as well.

please let me know your thoughts
bigfreak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-11-2006, 12:38 PM Re: what is the best way...
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You can add a class or ID to your body and specify the BG image in your CSS for each class.

In other words:
for page 1:
body .page1{
background: url(pg1bg.gif}}

then in the html
<body class="page1">
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-11-2006, 03:15 PM Re: what is the best way...
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
ok, you lost me when you clicked "post quick reply"

lol

i'll play with it a bit.

thanks lady!
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 12-11-2006, 04:18 PM Re: what is the best way...
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
lol
It's not too hard to do, really !

body .page1 specifies the class of .page1 for the body element.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 12-11-2006 at 04:21 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-11-2006, 06:35 PM Re: what is the best way...
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
i'm not sure if i explained myself properly here.

But i got the problem fixed anyways.

thanks for help lady!

I am now converted to the ways of css!
bigfreak is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to what is the best way...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.05099 seconds with 12 queries