ie extra line using both tables and css

Discussion in 'HTML' started by acorn71@gmail.com, Nov 30, 2005.

  1. Guest

    hello, the following code below creates an unwanted space (about 1px)
    underneath my image using ie 6. this space does not show up in ff1. the
    same results happen regardless if i use different images, or put my
    image inside a table. any suggestions? thanks. aaron;

    p.header {
    border-style: solid;
    border-color: #232D78;
    border-width: 2px;

    position:absolute;
    top:50px

    }

    <p class="header">
    <img src="myimage.gif" width="100" height="50" alt="mycaption"
    border="0" />
    </p>
    , Nov 30, 2005
    #1
    1. Advertising

  2. Els Guest

    wrote:

    > unwanted space (about 1px) underneath my image using ie 6.


    The image is probably sitting on the baseline of text, leaving room
    for the lower halfs of the letters g and j and others.
    Does img{display:block;} or img{vertical-align:bottom;} change
    anything?

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Now playing: Electric Boys - Rags to riches
    Els, Nov 30, 2005
    #2
    1. Advertising

  3. Guest

    hey, thank you so much! the img{vertical-align:bottom;} works on both
    ie and firefox. you have really helped me with this one as i was sure
    spending a lot of time trying to figure that out. thanks again!

    aaron;
    , Nov 30, 2005
    #3
  4. Els Guest

    wrote:

    > hey, thank you so much! the img{vertical-align:bottom;} works on both
    > ie and firefox. you have really helped me with this one as i was sure
    > spending a lot of time trying to figure that out. thanks again!


    You're welcome :)

    Can you do me a favour in return? Well, not just me, but like
    everybody here?

    Read this link carefully:
    http://www.safalra.com/special/googlegroupsreply/

    Thanks :)

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Now playing: Outburst - Victory For A Soul
    Els, Nov 30, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jd
    Replies:
    3
    Views:
    340
  2. ABCL
    Replies:
    0
    Views:
    525
  3. mathieu
    Replies:
    3
    Views:
    582
    Bo Persson
    Sep 4, 2009
  4. Ping-Hsun Hsieh
    Replies:
    1
    Views:
    419
    Jon Clements
    Nov 19, 2009
  5. Replies:
    3
    Views:
    2,977
    Terry Reedy
    Apr 27, 2010
Loading...

Share This Page