DIV floating out of main DIV...

Discussion in 'CSS' started by Washuu, Jul 15, 2008.

  1. #1
    I feel like I am doing something really stupid here and I do not realize it. I have a main container DIV and two sub DIVs to float the text to the left and the related picture to the right. Except that the text and picture float outside of the DIV. I understand the float tag for the most part, but it confuses on how to properly correct this problem.

    http://www.nonamestudios.com/portfolio.php
     
    Washuu, Jul 15, 2008 IP
  2. yankzilla

    yankzilla Peon

    Messages:
    159
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding this to your divcontmainpage class:
    overflow: auto;
    Code (markup):
     
    yankzilla, Jul 15, 2008 IP
  3. Washuu

    Washuu Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much. Worst brain fart ever!
     
    Washuu, Jul 15, 2008 IP
  4. pradeep.balua

    pradeep.balua Active Member

    Messages:
    415
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    having similar problems .. the overflow:auto property did it worked ?
     
    pradeep.balua, Jul 18, 2008 IP