treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Problems with two parallel divs

  • Hey,
    i have a problem:
    for my wepbage i need two parallel divs. They have to repeat the bgimage in a parent div downwards. So i think the "content"-div has to be relative an the left- and right-Column have to be absolute ?!
    But with this code my side does not repeat the image downwards.
    Only if i turn both columns relative the bgimage gets repeated, but the columns are among each other.
    I really don't know how to fix that problem !
    Can you please help me ?

    <div id="content">
    <div id="leftcontent">blabla</div>
    <div id="rightcontent">blabla</div>
    </div>

    Thank you
  • So is the background image on the main div, or in the column divs? And why the absolute positioning? Can you not float them for some reason? And the problem is that the background image isn't repeating? I don't understand why the type of positioning would have anything to do with that. Perhaps screenshots / links are needed to troubleshoot this one.
  • i fixed the problem,
    i toot the right column before the left, and gave only the right one float:right.
    thanks for your support !