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
Old 02-08-2007, 10:43 AM Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
http://future-visions.co.uk/cej

When hovering over the menu buttons, the green background should be shown, and then change back to the silver background image when hovered out.
I'm pretty stumped on this - it works in Firefox, but not in Internet Explorer.

Anyone - any ideas?

Thanks
futurevisions is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2007, 11:22 AM Re: Sticky hover images?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
For one thing, you need to use an unordered list instead of stacking DIVs for your menu. It is much easier to deal with and eliminates all those divs.
Then you can set the background on the <li> or <a> and change it on the hover and visited states.

In FF 2.0, your menu completely disappears on 'visited', the text color is set to white.

The image menu_green.png cannot be found.
__________________
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 02-08-2007, 11:49 AM Re: Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
LadynRed, you always come to my rescue. What's the best way to convert the div structure I have at the moment into ul?

Any help is greatly appreciated.
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-08-2007, 02:30 PM Re: Sticky hover images?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
The best way is by hand, because it forces you to learn and after you finish, you feel a little better about your skills, because you managed to do it.

I've played around with this and CSS is better than javascript for hover images.

Portable network graphics are bad. Internet Explorer hates them.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 02-08-2007, 02:47 PM Re: Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
Noo I didn't use any PNGs for that - the reference was part of some testing I was doing. The silver BG image was assigned to the parent div.

I'll have a go, and thanks for your help.
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-09-2007, 01:58 PM Re: Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
http://future-visions.co.uk/cej

I had a go at using an unordered list, and it worked, but not in IE, and it would appear that the sticky hover image still remains!

Any ideas anyone? Thanks..
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-09-2007, 05:15 PM Re: Sticky hover images?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
specify background: none for your a:link
set your LI to display: inline
__________________
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 02-09-2007, 08:02 PM Re: Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
Oooh progress! It would appear that the sticky problem has gone, but there remains some positioning issues.

Firefox: the menu bar has moved up over the header image (around 10px), and left a lot (if you view a box model with the dev toolbar, you can see how much.

IE: The menu bar has moved slightly to the left, but less so than with Firefox. The sticky issue has gone!

Edit: I didn't notice at first glance, but the menu bar has moved up slightly with IE, too.

Last edited by futurevisions; 02-09-2007 at 08:04 PM.. Reason: mis-informed
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-10-2007, 06:59 AM Re: Sticky hover images?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
I've managed to fix it now! Thanks for all your help - you can see the finished work at http://future-visions.co.uk/cej/index.html

Thanks again!
futurevisions is offline
Reply With Quote
View Public Profile
 
Old 02-10-2007, 11:08 AM Re: Sticky hover images?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You're welcome Glad you figured it out !
__________________
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
 
Reply     « Reply to Sticky hover images?
 

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 0.41137 seconds with 12 queries