The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

div is not displaying properly

Frns
I have a main div called main-content, inside which I have a div “imageleft” to align the image to left. This is working fine. Problem I am facing is the inside div with red border which is imageleft, is displaying outside the main div(with blue border). The div with red border should be inside the div with the blue border..
The output should look like ImageB.gif, right now it is looking like ImageA.gif