Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS height:100% doesn’t work?

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #28740
    threedash
    Member

    Hi there,

    I am trying to figure out why the bottom of my site doesn’t wrap around the bottom page.

    threedash.com/THREEDASH

    (if you look at the index page and aboutme page, the bottom spacing isn’t even. It’s currently set at 1000px, but i don’t want to act this way. )

    #74099
    doobie
    Member

    I wish I could figure out what you were talking about. Could you show some code to explain what you’re seeing/not seeing?

    Do you want the footer background to span across the entire width of the page?

    -J

    #74111
    threedash
    Member

    do you notice the empty space at the bottom near the footer on the
    "about me" page and the "index" page?

    I want it to wrap around the content. I don’t want the set

    #midContent {
    width:1000px;
    height:1000px; <


    (i don’t want to use this…)
    background:url(IMG/mid_bg.png) repeat-y;
    margin: 0;
    padding: 30px 0 0 0; }

    I was thinking of changing it to

    #midContent {
    width:1000px;
    overflow: hidden; <


    background:url(IMG/mid_bg.png) repeat-y;
    margin: 0;
    padding: 30px 0 0 0; }

    im also using,

    #me {
    margin: -65px 0 0 100px;
    float: left;
    width: 330;
    z-index:1;
    }

    negative margins to move the picture of myself into frame so this is effecting the "overflow:hidden" because it cuts off the picture.

    #74220
    maik_b
    Member

    Hi, i had the same proplem some months ago.
    I remember something like this:

    html, body {
    height: 100%; /* necessary */
    }

    #box {
    min-height: 100%;
    height:auto !important; /* modern Browser */
    height:100%; /* IE */
    }

    http://www.maik-borchert.de

    #74221
    doobie
    Member

    gotcha. Sorry I missed that.

    You’ll need to clear the float for the containing div. Many ways to do it. One way would be to set

    Code:
    overflow: hidden;

    on the #midContent div.

    Or, you could try this: http://css-tricks.com/snippets/css/clear-fix/

    and a good reference: http://css-tricks.com/all-about-floats/

    Hope this helps.

    -Jacob

    #74222
    doobie
    Member
    "threedash" wrote:
    negative margins to move the picture of myself into frame so this is effecting the "overflow:hidden" because it cuts off the picture.

    Right, sorry about the last post. the clearfix method should still work, though.

    #74227
    threedash
    Member

    hey malik,

    can you explain to me how i should implement your hack?

    #box {
    min-height: 100%;
    height:auto !important; /* modern Browser */
    height:100%; /* IE */
    }

    does #box = midContent

    is that what i should change ? or add?

    #74228
    threedash
    Member

    doobie, your method does work, but it shows up very weird on my dreamweaver design mode.

    #74289
    doobie
    Member
    "threedash" wrote:
    doobie, your method does work, but it shows up very weird on my dreamweaver design mode.

    I’m not surprised. Dreamweaver is notorious for botching pretty much everything I do… Just remember, it’s not a browser. It’s a design tool. And I think that’s why they call it the "clearfix hack"…

    Glad it worked, though.

    -Jacob

    #295128
    david263
    Participant

    Setting a ‘body’ to height: 100% sometimes works, sometimes doesn’t. I think the reason is that its parent, HTML, has zero height. So 100% of zero is zero. The solution:

    html, body {height: 100%}

    CSS has many unexpected characteristics. Poor design, I think.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.