Advanced Search

Results 1 to 3 of 3

Thread: wrapper does not auto expand

  1. #1
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default wrapper does not auto expand

    Hi im trying to tidy some code from my first ever web site.

    Im trying to make the wrapper and content divs expand as need be so im declaring height: auto

    However it doesnt auto expand.

    Im really not sure what the problem is.

    Can you see what im doing wrong ?

    http://www.efficient-heat.net/services.html

  2. #2
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If I float the wrapper left or right it autoexpands.


    However i need the wrapper centerd . How can i acheive that ?

  3. #3
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resolved

    " there's a trick using <br /> that should solve it.

    pop the margin: 0 auto; back on the wrapper and remove the float, then add <br class="clearMe" /> (class it how you like) at the bottom of your wrapper after the content.

    style = br.clearMe {clear: both; height: 0} "

    This worked.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •