Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6735301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:59:34+00:00 2026-05-26T10:59:34+00:00

I have a navigation bar which consists of a <img> elements within their respective

  • 0

I have a navigation bar which consists of a <img> elements within their respective <a> elements. However, for some reason in IE its making a dark black border around the images. Its not doing the same in other browsers, I can’t seem to figure this out… This is the html that I’m using.

<li>
   <a href="#">
      <span id="nav1">
         <img src="tt_1.png" />
      </span>
   </a>
</li>

I have about 5 links all written like that and I’ve used CSS to style it into a nav bar. On other browsers it comes out like this good bar

but on IE it comes out like this Bad bar :(

I’ve never encountered a problem like this before and what I’ve reserached to try and fix it so far haven’t worked. Is there a way to take out these borders using CSS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:59:35+00:00Added an answer on May 26, 2026 at 10:59 am

    TL;DR

    Remove borders from all links and images:

    a, img {
        border:none;
        outline:none; /* this breaks accessibility */
    }
    

    **Full version**

    If you only want to remove borders from images that are links, you should do the following:

    a img {
        border:none;
        outline:none; /* this breaks accessibility */
    }
    

    The only difference is that there is no comma between a and img meaning only images inside a-tags will have this rule applied

    Pro tip: Use a css reset

    Browser inconsistencies like this one are numerous, so web developers often use a "css reset" i.e. https://necolas.github.io/normalize.css/ or http://meyerweb.com/eric/tools/css/reset/. This will (among other nifty things) reset things like borders, margins, etc. on a number of elements so they render more consistently across browsers.

    Note on accessibility

    The dotted outline, that is often judged as disturbing by developers, has a very important function for keyboard users.

    You should never remove it. If you do, you need to find another visual indicator of where focus is, by adding a :focus style

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view which consists of a tableview and a navigation bar. For
I have an app, which has a top navigation bar and a bottom tab
I have got a wire frame for ipad application, in which navigation bar and
ASP.NET v2 I have MasterPage which includes the navigation bar for the site along
I have a navigation bar which i am using css to highlight on hover
I have a view which has it's own navigation bar and one tableview. I
I have an application which have a system add button the navigation bar .on
I have a navigationController which has a navigation bar. I would really like to
I have a navigation bar which is dynamically populated with LinkButtons by an ASP
I am an iOS newbie. I have a navigation bar button which when clicked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.