Discuss Links not working in Internet Explorer in the HTML Programming forum on Dev Shed. Links not working in Internet Explorer HTML Programming forum covering discussions of HTML and XHTML, as well as HTML-related issues such as writing W3C Compliant code. Use HyperText Markup Language for building websites.
Posts: 5
Time spent in forums: 48 m 12 sec
Reputation Power: 0
Links not working in Internet Explorer
Hi,
I'm making a website and have been using Chrome and Firefox to check its been working along the way, and I've just viewed it in internet explorer and seen that on my homepage, none of the buttons on the top ("Home", "skills", "Portfolio", "Reviews", "Contact") that are links are working and two other links further down the page have annoying blue borders around them!
Posts: 729
Time spent in forums: 1 Week 6 Days 23 h 17 m 15 sec
Reputation Power: 619
Your anchor tags are being dropped in ie. This is most likely because you are wrapping a div in the anchor tags. Take away the div completely and apply position and size styles to the anchor tag itself. It is OK to have an empty anchor tag.
Alternatively you could bust out the allinone image and use images inside the anchors. Then you could use alt tags in the images and this would be better for SEO.
Posts: 19,831
Time spent in forums: 6 Months 1 Day 19 h 39 m 3 sec
Reputation Power: 4192
Welcome to DevShed Forums, DJ-Specter.
Quote:
Originally Posted by benno32
It is OK to have an empty anchor tag.
Syntactically, yes, but for usability and accessibility (and SEO) reasons a link should have some text in it (or an image with appropriate "alt text").
Posts: 19,831
Time spent in forums: 6 Months 1 Day 19 h 39 m 3 sec
Reputation Power: 4192
Quote:
Originally Posted by DJ-Specter
The thing is I don't think they're being added by css or anything else, I think its just IE doing something weird to show they're links?
Web browsers use an internal stylesheet to control how elements are displayed by default. Some browsers apply a border to images within a link by default.
Quote:
Originally Posted by benno32
I usually add a border attribute to the image tags set to 0. ie: