My name is Khan
My name is Khan
My name is Khan
My name is Khan
--------------------------------------------------------
--------------------------------------------------------
The problem in the above file is that the data is out of the maincontainer. But when i delete the float from the container its again came into the the container. How can i make the 4 subcontainer classes data into the container class division tag without using specific number for the height tag in maincontainer class(It should be done using height:auto;)???
Thanks in advance...

Suthish NairRank #92 · 22.8K reputationPosted Jun 21, 2012, 11:43 AM EDT
just set width for main container..
.maincontainer{
nandu H2 reputationPosted Jul 25, 2012, 5:00 AM EDT
there are so many solutions but best one is
add overflow:hidden; to .maincontainer that's it.
Manoj RajputRank #2,678 · 520 reputationPosted Jul 26, 2012, 10:24 PM EDT
My name is Khan
My name is Khan
My name is Khan
My name is Khan
Manoj RajputRank #2,678 · 520 reputationPosted Jul 26, 2012, 10:26 PM EDT
there are so many solutions but best one is
add overflow:hidden; to .maincontainer that's it.
or
add float:left; to .maincontainer