auto hieght on content div problem

Discussion in 'CSS' started by artdog, Aug 17, 2006.

  1. #1
    I am having a problem with the auto height on my content div not expanding completely in Firefox. The page is at
    http://www.evocreative.com/easternbabes/our_agency.html

    Here is the CSS:
    #wrapper {
        height: auto;
        width: 800px;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
        background-color: #FFFFFF;
    }
    #wrapperthumbs {
        height: 790px;
        width: 800px;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
        background-color: #FFFFFF;
    }
    #content {
        height: auto;
        width: 800px;
        background-color: #FFFFFF;
    }
    #top {
        height: 100%;
        width: 100%;
    }
    #left {
        height: 400px;
        width: 178px;
        padding-top: 22px;
        position: relative;
        float: left;
        margin-left: 11px;
        margin-top: -288px;
    }
    #navigation {
        width: 100%;
        margin-top: -393px;
        position: relative;
        z-index: 2;
    }
    .navlink {
        float: left;
        width: 140px;
        padding-bottom: 15px;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #FFFFFF;
        padding-top: 15px;
        margin-left: 12px;
    }
    .navlinklast {
        float: left;
        width: 90%;
        padding-bottom: 15px;
        padding-top: 15px;
        margin-left: 15px;
    }
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-color: #CCCCCC;
    }
    #babes {
        width: 560px;
        height: 570px;
        margin-left: 200px;
        margin-top: 60px;
    }
    #babes #topbabes {
        height: 249px;
        width: 100%;
        margin-left: 25px;
        margin-bottom: 15px;
    }
    .thumbtext a {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #666666;
        text-decoration: none;
        text-align: center;
    }
    .thumbtext a:hover {
        color: #D30D0F;
    
    }
    .homethumblink a {
    border: 1px solid #000000;
    }
    .bigbabename a {
        text-decoration: none;
        color: #8A8C8D;
    }
    .bigbabename a:hover {
        text-decoration: none;
        color: #D30D0F;
    }
    #homethumbs {
        background-color: #F2F2F2;
        height: 235px;
        width: 565px;
        padding-left: 25px;
        margin-top: 10px;
    }
    .homethumb img {
        border: 1px solid #CE0C0C;
    }
    .homethumblast img {
        border: 1px solid #CE0C0C;
    }
    #homethumbs .homethumb {
        float: left;
        width: 50px;
        margin-right: 33px;
        margin-top: 10px;
    }
    .bigbabes {
        float: left;
        height: auto;
        width: auto;
        margin-right: 45px;
    }
    .bigbabename {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10pt;
        font-weight: bold;
        color: #8A8C8D;
        text-align: center;
        padding-top: 5px;
    }
    .bigbabesright {
    
        float: left;
        height: auto;
        width: auto;
        margin-right: 0px;
    }
    #footer {
        background-color: #CC0000;
        float: left;
        height: 20px;
        width: 770px;
        padding-top: 5px;
        padding-left: 30px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #FFFFFF;
        text-align: center;
    }
    #footer a {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #FFFFFF;
        text-decoration: none;
    }
    #footer a:hover {
        color: #cccccc;
    }#tageline {
        background-color: #D30D0F;
        height: 40px;
        width: 600px;
        float: left;
        padding-left: 200px;
        border-top-color: #FFFFFF;
        border-top-style: solid;
        border-top-width: 1px;
    }
    #signup {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px;
        font-weight: bold;
        color: #D30D0F;
        background-color: #E3E3E3;
        height: 160px;
        width: 165px;
        float: left;
        margin-left: 5px;
        margin-top: 30px;
    }
    .signupform {
        padding: 10px;
        width: 100px;
        text-align: left;
    }
    .signupform input {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9pt;
        border: 1px solid #D30D0F;
    }
    .signuplabel {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        color: #D30D0F;
        text-align: left;
    }
    .homethumblast img {
        border: 1px solid #CE0C0C;
    }
    #homethumbs .homethumblast {
        float: left;
        width: 50px;
        margin-top: 10px;
    }
    #insidethumbs {
        float: left;
        height: 235px;
        width: 540px;
        padding-left: 25px;
    }
    #insidethumbs .insidethumb {
        float: left;
        width: 76px;
        margin-right: 37px;
        margin-top: 10px;
    }
    #insidethumbs .insidethumblast {
        float: left;
        width: 76px;
        margin-top: 10px;
    }
    .insidethumb img {
        border: 1px solid #CE0C0C;
        margin-bottom: 5px;
    }
    .insidethumblast img {
        border: 1px solid #CE0C0C;
        margin-bottom: 5px;
    }
    #babescroll {
        width: 600px;
        height: 500px;
        float: left;
        padding-left: 5px;
        overflow: auto;
        margin-bottom: 10px;
    }
    #detailtext {
        background-color: #f7f7f7;
        height: auto;
        width: 320px;
        margin-left: 200px;
        padding-top: 10px;
    }
    #detailphoto {
        float: left;
    }
    #detailtop {
        background-color: #D30D0F;
        width: 520px;
        height: 24px;
        text-align: left;
    }
    #detail {
        width: 530px;
        height: auto;
        margin-top: 60px;
        margin-left: 230px;
        margin-bottom: 10px;
    }
    #detailtext .myself {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        line-height: 13pt;
        color: #666666;
        height: auto;
        width: 88%;
        text-align: justify;
        margin-left: 20px;
    }
    .detailhdr {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        font-weight: bold;
        color: #D30D0F;
        width: 290px;
    }
    #stats {
        background-color: #ECECEC;
        width: 300px;
        height: auto;
        padding-top: 10px;
        padding-left: 20px;
        padding-bottom: 10px;
    }
    #stats #statsleft {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        width: 150px;
        text-align: left;
        color: #666666;
    }
    #stats #statsright {
    
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9pt;
        line-height: 12pt;
        width: 50%;
    }
    .statshdr {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        color: #D30D0F;
        line-height: 16pt;
    }
    .statshdr2line {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        color: #D30D0F;
        line-height: 9pt;
    }
    .stats2line {
        line-height: 9pt;
    }
    #detailsflashleft {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: bold;
        font-style: italic;
        color: #FFFFFF;
        margin-left: 10px;
        font-size: 10pt;
        margin-top: 3px;
        float: left;
    
    }
    #detailsflashright {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: bold;
        font-style: italic;
        color: #FFFFFF;
        font-size: 9pt;
        margin-top: 3px;
        float: right;
        margin-right: 10px;
    
    }
    #bodytext {
        width: 530px;
        height: auto;
        margin-top: 60px;
        margin-left: 230px;
        margin-bottom: 10px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        text-align: justify;
        line-height: 14pt;
    }
    #bodytext .opener {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 10pt;
        line-height: 22px;
        font-weight: bold;
        color: #999999;
    }
    .boldred {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        color: #D30D0F;
    }
    .boldgrey {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        color: #999999;
    }
    .pagehdr {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 13pt;
        font-weight: bold;
        color: #D30D0F;
        font-style: normal;
    }
    
    
    Code (markup):
     

    Attached Files:

    artdog, Aug 17, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    The problem is with IE. It does not properly collapse margins, making you think things were ok. Add this:
    
    #content {
        padding-bottom: 1px;
        }
    Code (markup):
    That will uncollapse the margin on the good browsers.

    cheers,

    gary
     
    kk5st, Aug 17, 2006 IP
  3. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You also have a problem with various p tags, which will cause the page to appear differently in some browsers. Be sure to validate your page before tracking down issues, because it can save you a lot of time.
     
    Gordaen, Aug 17, 2006 IP