CSS help is needed
April 17, 2008 12:25 PM   RSS feed for this thread Subscribe

Can I make this work in IE the same as it does in Firefox? Here is the example i need some CSS help with. This works properly in Firefox, but needs some help in IE. Any suggestions?
posted by joelf to computers & internet (2 comments total) 1 user marked this as a favorite
The problem is that IE displays a pixel-wide gap in-between the top tabs and the selected drop-down box. The drop-downs work if you move your mouse fast enough so it "jumps" the gap in a rendering frame. So the hack is to just get rid of that gap. I tried looking for something that might be a bit more aesthetically pleasing, so it still lines up, but no luck. Here's the hack:

Change the margin in
#tabs .select :hover .select_sub,
#tabs .current .show

to
margin:-1px 0 0;

It works for me in IE6. I didn't test IE7.

Looking at the HTML, seems like you're getting tangled in the IE conditional hacks. There's no need to re-invent the wheel. You might want take a look at Suckerfish Dropdowns. I'm a fan of HTML Dog's version that cleans it up a bit.
posted by nemoorange at 2:44 PM on April 17


Thanks, I've got the gap taken care of now.

What I'm specifically looking for is the ability to make it display in a dropline, like it does in FF and not in a dropdown. I talked to Stu the guy who came up with the original and he said it's because I don't have a PX width on the submenu.

I think that this will be a case where I will have to investigate javascript solutions. Thanks for your help all the same.
posted by joelf at 8:46 AM on April 18


« Older What's your best haroset recip...   |   Any Excel gurus in the room? I... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
1. Great Idea 4. Profit! Help with 2 and 3, please. February 29, 2008
My Multi Select UI Sucks. Help me make it better January 7, 2007
looking for web image rotator that does text captions August 18, 2006
Good CSS Books? August 16, 2005
Good books for beginning php April 5, 2005