1 reply [Last post]
sperks
Offline
Enthusiast
New York
Last seen: 13 years 28 weeks ago
New York
Timezone: GMT-5
Joined: 2004-10-01
Posts: 158
Points: 0

if you look at the second level nav in IE here, you'll see that only the first item in my second level navigation is behaving like a block (you need to hover over the actual text in the rest of the links). Anyone have any idea? I suspect it's to do with the height/line-height atributes, but I can't work out why it's working on the first list item and not the others.
http://preview.meetingsnet.com
Cheers
Steve

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

<a> only behaving as block on first item

Hi

IE will hover only over the contents in between the anchor element, Try this code:

css:
span{width:200px;display:block;cursor:pointer}
html:
<span><a href="#">Click Me</a><span>

Now try it without the cursor:pointer

Weird, eh?

Trevor