Forum Moderators: open
Anyway - my issue is a <li> of <a> tags in a <div> which is #2 of 4 which float-left on a page (you can see the page at < url removed >). The last item of the list responds to a:hover whenever a mouse floats over <div>'s 3 and 4 which are adjacent.
Nowhere near the link itself - I'm perplexed and wondered if anyone can help me get on the track of this?
Cheers,
Sam.Oz
[edited by: tedster at 4:48 am (utc) on Feb. 1, 2009]
This sounds like one or more of your <a> elements is missing its </a> - have you validated your mark-up?
W3C Validator - HTML [validator.w3.org]
I didn't write this particular source code, but they had exactly the same problem as this thread - an unclosed anchor tag. However, they weren't fortunate enough to see any browser symptoms because in this case the browser error-recovery routines adapted to it. In fact, there were over 1,000 characters before the open anchor tag was finally closed.
This is not to say that 100% valid code is a "must have" in every case. But we sure do need to know about the errors that come up and decide if they can/should be fixed.
I normally work in Homesite and I now use the built in validator after EVERY save when I'm developing a layout. I'm also pretty disciplined about using it after every edit as the site evolves - I've been bitten once too often!