Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-12-2010, 10:17 AM   PM User | #1
Domesticmango
New to the CF scene

 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Domesticmango is an unknown quantity at this point
Question Problem with css code hover button (new)

Hey guys this is my first post =D

Im having problems with my hover button, the problem is i can make one hover button change image but when i try to with one below it doesnt work im thinking its because i havnt ended the one before but im only 3 days new with the whoel css code and stuff
here is my webpage with hover button problem:http://uniquestyleanddesign.webs.com/
the home button changes but the photos one doesnt?? here is the css code i have put in to make them hover

#homebutton:hover { background-image: url("http://farm4.static.flickr.com/3053/4596753027_c68776521e_o.jpg");

#photos:hover { background-image: url("http://farm4.static.flickr.com/3053/4596753027_c68776521e_o.jpg")

all help is very much appreciated
Domesticmango is offline   Reply With Quote
Old 05-12-2010, 11:08 AM   PM User | #2
dandy12
New to the CF scene

 
Join Date: Sep 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
dandy12 is an unknown quantity at this point
The best thing would be to add a class 'rollover_buttons' to achieve this rather than doing by the 'id' fields.
like
.rollover_buttons:hover{ background-image: url("http://farm4.static.flickr.com/3053/4596753027_c68776521e_o.jpg");}

And then put class="rollover_buttons" beside the id field of your buttons/links.

Also in your css, i couldnt find the line with

#photos:hover { background-image: url("http://farm4.static.flickr.com/3053/4596753027_c68776521e_o.jpg")}

Thats why hover on 'photos' button and other buttons aren't working.
dandy12 is offline   Reply With Quote
Old 05-12-2010, 11:21 AM   PM User | #3
Domesticmango
New to the CF scene

 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Domesticmango is an unknown quantity at this point
this probally sounds like a dumb question but where do i put

.rollover_buttons:hover{ background-image: url("http://farm4.static.flickr.com/3053/4596753027_c68776521e_o.jpg");}

and also what does =class mean ( im really sorry for the silly questions but im trying to learn and im not to good so far lol )

here is a screenshot of where ive put the text ( its a wierd sorta way cause of web.com)

http://www.flickr.com/photos/4506722...28002/sizes/o/
Domesticmango is offline   Reply With Quote
Old 05-12-2010, 11:30 AM   PM User | #4
Domesticmango
New to the CF scene

 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Domesticmango is an unknown quantity at this point
i figured it out my } key wosnt working lol sorry for the hassle but thank u very much for the help mate the )} makes it work now thank u again =D
Domesticmango is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:41 AM.


Advertisement
Log in to turn off these ads.