Forums

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

Home Forums CSS I lose the “Auto” Height

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

    When I put this div in

    http://codepen.io/anon/pen/lhndq

    I lose the “Auto” setting of the Height Style in the #page_wrap

    http://guaposcapecod.com/main_copy.html
    In this one the #page_wrap height is auto fit for the content

    http://guaposcapecod.com/main_no_auto.html
    You’ll see in this one the bottom is now cut-off, as if the auto in #page_wrap is static again…

    #124272
    Paulie_D
    Member

    Wow…what’s all this about?

    #main-content-wrap {
    margin: -610px 10px 40px 425px;

    #124276

    Looks like that is left-over code. I can’t find where it’s needed….

    #124277
    Paulie_D
    Member

    Dunno….you have that element which looks like it should hold stuff…but there is nothing in it.

    #124279

    Yep, I just took it out, and everything works without it (with the exception of the issue in the post of not fitting all the content in the #page-wrap box dynamically) . That code above was not needed. THanks for noticing that code-dirt.

    #124280
    Paulie_D
    Member

    I think you need to look at the HTML structure. You seem to be moving things around using large margin values which will break pages and create all sorts of strange effects.

    #124281

    Ugh…seems I lied (didn’t clear my cache).

    So #main-content-wrap contains the image for the main page. It’s the image that has the photo of people in it.

    It’s called in the code of the html file just above the footer div’s

    #124282

    ok I’ll play with the HTML and see what I can figure out. Thanks for looking !

    #124284
    Paulie_D
    Member

    I would look into how floats work….it’s going to remove a lot of the need for those odd margins.

    #124285

    yeah the odd margins are driving me nuts. I’ll definitely look into floats.

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