| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > CSS problem: LI A Span width in a floating menu, for ie6 |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: Dec 2007
Location: Denmark 4600
Posts: 82
|
CSS problem: LI A Span width in a floating menu, for ie6
hey guys, I have this menu: <ul> <li><a><span>menu01</span></a></li> [...] </ul> i am using CSS to make the li float left and and the anchor for the :hover effect (the span is for a "end" background picture). Problem is with the width in IE6 if i don't define a width.value the li goes 100%, which looks crap. if i define a width.value then the value is working as a min-width, but if the menu is in several words, it goes to the next line, which also looks crap. anyone have a solution for this? |
|
|
|
|
|
#2 (permalink) |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
|
A floated <li> (or any floated element) should never be block-level, as you describe it. Something in your cascade might be making this happen. Can we see a link to the page online? |
|
|
|
#4 (permalink) | |
|
Baskin'
Join Date: Feb 2005
Posts: 5,619
|
Quote:
Hi herk, why not? I do it all the time to make link lists so would like to know if I'd be better off trying sommit else..? |
|
|
|
|
#5 (permalink) | |
|
Baskin'
Join Date: Feb 2005
Posts: 5,619
|
Quote:
looks ok from here..? |
|
|
|
|
#6 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
|
|
|
|
|
#8 (permalink) | |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
|
Quote:
...or do I always have a width set when I do it? |
|
|
|
|
#12 (permalink) |
|
Registered User
Join Date: Dec 2007
Location: Denmark 4600
Posts: 82
|
@ hawken look it up: HTML SPAN TAG @ anybody Still no ideas how to fix ie6's behaviour? How do you usually set up a listed menu width <span> inside? |
|
![]() |