All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Background repeat under float div

  • # August 16, 2009 at 11:49 am

    Hello all,

    I am trying to understand css and not just type, so I decided to clean up a site I have been working on. Here is the issue I am having.

    I have a <div id="contentLeft> and <div id="contentRight’>. Both are floated left, but the background-repeat from the main wrapper won’t flow behind them, and I do not totally understand why. Can someone explain it to me? Or direct me to a site that will?

    # August 16, 2009 at 12:54 pm

    This reply has been reported for inappropriate content.

    Can you post a link?

    # August 16, 2009 at 2:14 pm

    This reply has been reported for inappropriate content.

    The floats aren’t clearing. Your css is already set up to handle it so all you need to do is add <div class="clear"></div> between the #content closing tag and the #wrapper closing tag:


    # August 16, 2009 at 6:59 pm

    Thanks alot I appreciate your help.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed