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

Home Forums CSS wrapper div not expanding to contain elements

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #24081


    I have huge problems with layouts. This site and page is a case in point. I had it "working" but apparently changed something that screwed at least one page up:

    The wrapper div isn’t containing the main content div… it’s all jacked up. I’m not even sure what to try. I thought maybe the floated elements were screwing it up; i know sometimes that can be a reason elements will go outside a container div; but i haven’t been able to fix it. I’ve tried adding a superflous div with a clear: left or whatever, but that hasn’t helped.

    Any thoughts?!




    I’m not exactly sure what you intended your footer to look like, but if you add "overflow:auto" to your .main-content div, it will properly enclose the elements.


    use div{clear:booth} before the end of the div wrapper

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