Old 10-11-2005, 09:08   #1 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
IE Bug

I'm working on a sub-navigational menu system for my new site. Works fine in FF, but I've run into a bug in IE6 (and lower). A large space is placed between each of the three buttons.

[link removed, problem solved]

Now, this can be eliminated by giving the <li>s a height of 1%, or zero, or something. Even so, it still gives you a 3 pixel space between them. I tried margins, padding, line-height, height...I can't figure it out. Any help is appreciated.

The relevant HTML is...

HTML Code:
<ul> <li id="subcurrent"><a href="#" title="..."><span>Web Design</span></a></li> <li><a href="#" title="..."><span>Consultation</span></a></li> <li><a href="#" title="..."><span>Hosting &amp; Management</span></a></li> </ul>
The extra span is a style hook for the rounded corner effect.

All relevant CSS can be found at - [link removed, problem solved]

Last edited by pgo : 10-11-2005 at 09:39.
  Reply With Quote
Old 10-11-2005, 09:11   #2 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,660
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
I had the same and put a:

margin-bottom:0!important;
margin-bottom:-3px;

and it sorted it... dont know if thats any use to you

Last edited by finbarr : 10-11-2005 at 09:26.
  Reply With Quote
Old 10-11-2005, 09:21   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Doesn't work - it just breaks.

Thanks, though.
  Reply With Quote
Old 10-11-2005, 09:33   #4 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
try giving everything a width?
Code:
#sidebar ul li {width:150px;} #sidebar ul a { display: block; font-size: 1.1em; font-weight: bold; text-align: right; padding-bottom: 8px; margin: 0; width:150px; } #sidebar ul a span { display: block; width:150px; padding: 8px 10px 0 10px; margin: 0; }
  Reply With Quote
Old 10-11-2005, 09:35   #5 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Fucking hell. I figured it out.

Added a 200px width to the <a>s.

What. The. Fuck.

EDIT: Haha. Thanks emil - great minds think alike, I guess. Don't know why it worked since they're not floated.

I tried adding a width to the spans, too, but that threw it all out of whack in IE.

Now to sort out the nightmare that is IE5.5
  Reply With Quote
Old 10-11-2005, 09:42   #6 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
haha, good luck
  Reply With Quote
Old 10-11-2005, 09:48   #7 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Oddly enough, it looks fine in 5.01, but utterly destroyed in 5.5.

What fun would we have if it weren't for IE. God ... bless ... it.
  Reply With Quote
Old 10-11-2005, 09:50   #8 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
why don't you feed a different stylesheet to IE?
do you care so much for IE 5.5?
  Reply With Quote
Old 11-11-2005, 01:19   #9 (permalink)
skyrocket
SkyRocket Design
 
skyrocket's Avatar
 
Join Date: Aug 2005
Location: Chichester
Posts: 536
Quote:
Originally Posted by pgo
What fun would we have if it weren't for IE. God ... bless ... it.

amen. did you try removing all the white space between the li items?
  Reply With Quote
Old 11-11-2005, 02:11   #10 (permalink)
pinksage
Why must i label myself?
 
pinksage's Avatar
 
Join Date: Nov 2005
Location: NYC | Jersey City
Posts: 130
Send a message via AIM to pinksage
i HATE IE... it should be banned.
  Reply With Quote
Old 11-11-2005, 09:00   #11 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Quote:
Originally Posted by skyrocket
amen. did you try removing all the white space between the li items?
Yeah, didn't work. Adding a width did. For some dumbfuck reason.

Oh well. I'd never have any excitement if it weren't for IE.

The site's coming along nicely. Should be ready to post it next week or so.
  Reply With Quote
Old 12-11-2005, 21:30   #12 (permalink)
Phantomsuspect
Violent & Irrational
 
Phantomsuspect's Avatar
 
Join Date: Nov 2005
Location: upstate NY - Albany Area
Posts: 28
Some helpful advice was given to me recently, try removing the doctype and see what happens, when it is weird it is the doc type in IE. I don't know if removing it is a good idea but if it fixes the problem you can scream at IE once again.
  Reply With Quote
Old 12-11-2005, 22:09   #13 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Nah, I'm not removing the doctype. Besides the problem has been fixed.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8