Border visible when image loads

Discussion in 'CSS' started by kittuk, Sep 16, 2009.

  1. #1
    when a image loads in firefox, it shows a border of that image till the image loads and fills in.

    In IE, the space just remains empty & then the image loads.

    How should i remove the border in Firefox?

    hope i am being clear enough.
     
    kittuk, Sep 16, 2009 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't see borders on my pages in FF when an image is loading, so I can assume it really somehow is your code. But it could be a setting on your browser and nothing to do with your webpage.

    Post some code? In general, my HTML images are

    <img src="theimage" width="awidth" height="aheight" alt="thetext">

    (width and height stated)

    and my CSS is

    img {
    border: 0;
    vertical-align: bottom;
    }

    No borders, and no little gap on the bottom. If you have a similar setup and you still see "loading" borders then I'd say it's your own browser. It's not a known Firefox thing that I know of.
     
    Stomme poes, Sep 16, 2009 IP