DivitoDesign

Everything for the Web Professional

1px Dotted Border Bug In Internet Explorer 6

Information about the Author:

Name:

URL: http://twitter.com/divitodesign

Description enjoy design, write articles, like typography, love football, keep chilling.

More on: CSS

8 Comments

  1. me says:

    Just fine hint, but there is one issue.
    You should not save the image as JPG for 2 reasons.
    1) JPG is not loss-less and furthermore just not the format of choice in case of a known 2 color only palette
    2) If you use GIF you can use “transparent” instead of white as the background and thus, do not have to create a separate image for every background-color you work with and want a dotted border to appear on.

    greets

  2. Guzabi says:

    Yeah. What if you have this :

    #myelement {
    border: 1px dotted #000;
    }

    Uh ?

  3. @me – I didn’t really think of that, but it’s a good idea. Of course a GIF image does a better job here.

    Thanks for your comment and tip!

  4. @ Guzabi – I couldn’t find much online, and I didn’t try it because I found the bug when I used border-bottom:1px dotted #000;

    Regarding your question, I made a sample, which can be found here. http://www.divitodesign.com/dd-articles/1px-border-bug/ie-border-try.html

    As you can see, the bug occurs in border:1px dotted #000; as well!

  5. me says:

    @ Guzabi
    Sorry, no chance for that, unless you know the size of the element (in px, not em!)
    This, of course, breaks usability with scaled font size — for professional use not an option.

  6. @ME – Thanks for helping out!

  7. Bjarni says:

    Hi Stefan, thanks for the article, most helpful.

    I had a similar problem where IE 6 would not show border-bottom: 1px dashed #000; though would work in IE7 (It may be due to floating?). Anyway to save time I used your mentioned technique to resolve the issue as well as being able to stylise the dashed line to my liking. Saving it as a gif for me added a touch more versatility too.

  8. Kashif says:

    in I.E (6 and 7) have problem. the combobox border color not hidding, it is bug.

Please Respond and Give your Opinion

We use Gravatar to handle our avatars. Get one there!