How to make a dotted border to work in IE?

Discussion in 'CSS' started by Iines, Dec 14, 2006.

  1. #1
    Hey!

    I tried to make a dotted border-bottom style for my website and it looks really nice in Firefox but only as a normal line in IE. Is there any way to make it look dotted in IE too?

    border-bottom-width: medium;
    border-bottom-style: dotted;

    Thanks!
     
    Iines, Dec 14, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    IE <=6 does not support {border-style: dotted;}, and renders it as dashed. There is no fix. IE7 is said to have added that property value.

    cheers,

    gary
     
    kk5st, Dec 14, 2006 IP
  3. Iines

    Iines Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok. Thanks for the quick reply!
     
    Iines, Dec 14, 2006 IP
  4. glorie

    glorie Peon

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sometimes when I don't want to compromise the design, I just use a dotted background image.
     
    glorie, Dec 14, 2006 IP
  5. Iines

    Iines Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, that was a good idea. It looks much better now !
     
    Iines, Dec 15, 2006 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually, just use the Star HTML hack and give IE 5x and 6 a 2px dotted border:
    
    #selector {
        border: 1px dotted #000;
    }
    
    * html #selector {
        border: 2px dotted #000;
    }
    
    Code (markup):
    But that's just me *yawns* (it's getting late - time for me to head to bed).
     
    Dan Schulz, Dec 18, 2006 IP