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
Cross browser issues with a hover block
Old 10-11-2008, 07:52 PM Cross browser issues with a hover block
Junior Talker

Posts: 3
Name: no way
Trades: 0
Hi everyone!

I thought I'd drop in and see if anyone could help me out. I have made a display block which appears when someone hovers over the navigation. It works perfectly in Firefox & Safari (I am working on a mac) but when I check it in Internet Explorer - the hover box appears in the wrong place.

The hover box is supposed to align directly under the navigation - approximately in line with "seasonal services".

The URL to my site is www.srpenterprises.ca/gardenYard.html

The css that controls the span in the navigation is:

div#navcontainer a span {display: none;}

div#navcontainer a:hover span {display: block;
position: absolute; top: 460px; width: 150px;
padding: 5px; margin: -10px; z-index: 100;
color: #F9F8DF; background-color: #999F52;
font: 14px Verdana, sans-serif; text-align: center;}

If you feel like helping me - feel free to be really specific. I'm pretty new at this.........

Thanks
Hopeful Newbie

Last edited by chrishirst; 10-11-2008 at 08:49 PM.. Reason: url fixed
Merridithp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2008, 09:32 PM Re: Cross browser issues with a hover block
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
1 - Set your #navcontainer to position:relative - that makes sure that the absolutely positioned span is positioned relative to #navcontainer and not the body.

2 - set your left position by adding left: 0; to the a:hover span styles.
You may have to add conditional comments and a separate CSS file with just the fixes needed for IE in it to combat IE's problems.
__________________
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 10-12-2008, 01:03 PM Re: Cross browser issues with a hover block
Junior Talker

Posts: 3
Name: no way
Trades: 0
LadynRed:

Web GODDESS!!!!!!!!!

It worked! I spent about 6 hours yesterday struggling with that hover thing.

Thank you!Thank you!Thank you!
Merridith
Merridithp is offline
Reply With Quote
View Public Profile
 
Old 10-12-2008, 09:13 PM Re: Cross browser issues with a hover block
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're welcome
__________________
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 Cross browser issues with a hover block
 

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