Forums

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

Home Forums CSS Div wont inherit height according to inner child divs.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #46338
    Anonymous
    Inactive

    I know ive been posting allot on this website lately but this is practically my second Google. When Google can’t help i come here.

    Anyway for some reason the container div wont inherit the height of the child divs inside it. This is something that should happen automatically and it does with all the other divs on the website. I oversized the contact form and gave it a red background to show that the blue container doesn’t inherit the height as it should. Why is this?
    http://reallycoolstuff.net/PROJECTS/jobmagnet/

    doesn’t have max-height or any of that.

    #142418
    theacefes
    Member

    Do you have a link? :)

    #142419
    Anonymous
    Inactive

    Oh snap. forgot to post it.

    #142422
    theacefes
    Member

    Do you need to clear your floats? I set the container div to overflow:hidden (not my usual method ) and that seemed to help.

    EDIT: You could put the contact form and the additional into a div and set that div to overflow:hidden or apply your usual clear fix solution.

    #142426
    Anonymous
    Inactive

    @theacefes. float is definitely the culprit. Thanks i fixed it.

    #142428
    theacefes
    Member

    No problem. :)

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