Forums

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

Home Forums CSS Wrapper Problems

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

    Hi guys,

    I have a wrapper that contains two divs. One is floated left and the other is also floated left with margin left to give a two column layout.

    Something I have noticed is that whenever I do this kind of layout and the divs inside the wrapper are floated left or right, the wrapper div doesn’t inherit their height. I have tried height auto and it didn’t work.

    Heres a live the example. http://michaeloneilldesign.com/testing/test/

    The wrapper div has a red border to see what is happening. If I get rid of the floats the red border expands around the two divs.

    What am I doing wrong ?

    Thanks

    #49319
    chrisburton
    Participant
    overflow: hidden;
    #49320

    Thanks Chris! Just figured it out as you sent that!

    #49321
    chrisburton
    Participant

    You’re Welcome :)

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