SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Container Wrapper not wrapping

    Hi,

    The page in question is www.clhdesigns.com/heritage/gallery.php As you can see the content container actually wraps around the 3 boxes above the gallery. However if you look at the other pages the container wraps just fine where it's supposed to. Here is the CSS in question

    Code:
    #maincol2 {
        background: none repeat scroll 0 0 #FFFFFF;
        padding: 20px 0;
        width: 960px;
    }
    I have put in a proper padding rule but is seems to not want to take. Is there something I'm missing here?

    Thanks
    Your Websites Your Way!!
    www.clhdesigns.com

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,797
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    I think you may have already fixed this by adding a div with clear:both into the page but that is not a nice solution

    You could instead apply overflow:hidden to #maincol2 and that will contain the child floats without extra mark up.

    If you meed visible overflow then use the clearfix :after method instead (see CSS faq on floats for more info).


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
  •