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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Posts
    135
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Space at bottom of DIVs in firefox, not IE.

    Whats going on here?

    There is a background image, and a top and bottom image in each div. I tried setting margins and padding to 0px for the bottom... A slip of the background image still shows at the bottom in firefox!??

    I fixed it with this code (margin-bottom:-2px):
    <div style=\"margin-bottom:-2px;\"><img src=\"$appcallbackurl"."bottomBar.gif\" /></div>

    Still kinda odd though... Is there another way?

    -------------------------------------------------------------------<<Firefox | IE6>>
    Last edited by iceflyin; 10-16-2007 at 07:20 AM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    May be, but please post a link or html&css of your page.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Posts
    135
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Code:
    #associates {
    background-image: url(http://***.***.248.45/portfolio/background.gif);
    float:left;
    width:308px;
    background-color:#eaf4fe;
    }
    #comments {
    background-image: url(http://***.***.248.45/portfolio/background.gif);
    float:left;
    width:307px;
    background-color:#eaf4fe;
    }

    And...

    Code:
    <div id=\"comments\">
    
    **** MASSIVE AMOUNT OF PHP CODE REMOVED ****
    //Theres my margin-bottom:-2px; fix!
    echo "<div style=\"margin-bottom:-2px;\"><img src=\"$appcallbackurl"."bottomBar.gif\" /></div></div>
    Last edited by iceflyin; 10-16-2007 at 07:37 AM.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I'm sorry to say that this is not enough to help you since the html layout depends on its surrounding and near by elements.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Regular Coder
    Join Date
    Jul 2007
    Posts
    135
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks anyway, doesn't really matter. The fix works fine.


  •  

    Posting Permissions

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