Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorry if asked before.. extra space under image in FF wont go away arrgh!

    Hi,

    Maybe this has been asked before, apologies if so.

    I have a div with a photo in it and below i have another div. In IE they sit touching each other fine. but in FF there is a gap. I have looked for an answer but after trying a few of the recommended things i still can't get it to budge!

    (Ive tried vertical align bottom too)

    HTML ----

    <div id="photo"><img src="images/Slider1.jpg" alt="Slider at Momentum"></div>

    <div id="static">
    <h3>Latest Podcast Tacklist</h3><a href="www.later.html">(Download here)</a>
    <ol>
    <li>Ethereal 77 - Baltica</li>
    <li>Scarlet Lake - Expressions (KMC Remix)</li>
    <li>Instra:Mental - Pacific Heights</li>
    <li>Future Engineers - Karma Remix</li>
    <li>Hidden Agenda - Vindication</li>
    <li>Reguez - Neural Pathways</li>
    <li>Appaloosa - Chord Data</li>
    <li>Angelzero - Recess</li>
    <li>Chris J and Cable - Winslice</li>
    <li>Seba and Krazy - Chameleon</li>
    <li>B.Fuse - Time of Passion</li>
    <li>Teebee - April Dawn</li>
    <li>Infuzoria - Iceberg </li>
    </ol>
    </div> <!-- end static-->

    CSS ----

    #photo {
    display:block;
    margin-left:0px;
    height:500px;
    margin: 0px 0px 0px 0px;
    line-height: 0px;
    text-align:left;
    vertical-align:="center";
    margin-bottom:0px;
    }


    #static {
    margin-left:440px;
    width: 300px;
    padding:0px;
    text-align:left;
    background-color:#999966
    }

    Please help me someone its driving me maaaaaad.

    Any help appreciated

    David

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    Code:
    img { ]display:block; }

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,662
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    For the reason why this is happening, look up http://developer.mozilla.org/en/Imag...ysterious_Gaps


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •