HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2012, 01:33 PM
DJ-Specter DJ-Specter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 5 DJ-Specter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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!

my website is milesmonty.com

How can I fix this please?

Thanks

Reply With Quote
  #2  
Old July 8th, 2012, 07:06 PM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 729 benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level) 
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.
__________________
*/

Reply With Quote
  #3  
Old July 8th, 2012, 09:32 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,831 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
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").

A CSS Image Replacement technique could also be used. I recommend the Gilder/Levin CSS Image Replacement technique.
Comments on this post
benno32 agrees!
terriwells agrees: Thanks especially for bringing up the SEO point.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #4  
Old July 9th, 2012, 11:45 AM
DJ-Specter DJ-Specter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 5 DJ-Specter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 12 sec
Reputation Power: 0
Thanks very much for both of these answers!! I've now put a small blank picture in the anchor tags which works brilliantly.

When I view the page in IE though, I still get annoying borders around the links. Can I do anything about these?

Thanks again

Reply With Quote
  #5  
Old July 10th, 2012, 04:47 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2007
Location: Sydney, Australia
Posts: 729 benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level)benno32 User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 23 h 17 m 15 sec
Reputation Power: 619
Quote:
Originally Posted by DJ-Specter
Thanks very much for both of these answers!! I've now put a small blank picture in the anchor tags which works brilliantly.

When I view the page in IE though, I still get annoying borders around the links. Can I do anything about these?

Thanks again


I usually add a border attribute to the image tags set to 0. ie:
html Code:
Original - html Code
    <img src="xxx" border="0" />


But you could do this globally via css as well:

css Code:
Original - css Code
  1. img { border: none; }

Reply With Quote
  #6  
Old July 10th, 2012, 06:20 AM
DJ-Specter DJ-Specter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 5 DJ-Specter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 12 sec
Reputation Power: 0
Quote:
Originally Posted by benno32
I usually add a border attribute to the image tags set to 0. ie:
html Code:
Original - html Code
    <img src="xxx" border="0" />


But you could do this globally via css as well:

css Code:
Original - css Code
  1. img { border: none; }


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?

Reply With Quote
  #7  
Old July 10th, 2012, 11:32 AM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,831 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
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:
Code:
html
<img src="xxx" border="0" />

But you could do this globally via css as well:
Code:
css
img { border: none; }

The border attribute for <img> elements is obsolete. CSS should be used to control that. FYI, I prefer to use "border: 0 none" instead of just "border: none".
Comments on this post
benno32 agrees: I had better stop using it then. Old habits die hard.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Links not working in Internet Explorer

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap