Grow your CSS skills. Land your dream job.

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

    Can you post a link?

    # August 16, 2009 at 2:14 pm

    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:

    Code:

    # 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.

*May or may not contain any actual "CSS" or "Tricks".