View Full Version : floating div problem

06-30-2011, 06:50 AM
ok i have a wrapper div that is supose to contain all of my other divs i have 1 floating left 1 right then when i try to float another 1 to the left its like it pops out of the wrapper div. im not sure if i am explaining this right but if you can help id be more then thankful

06-30-2011, 06:56 AM
Seeing it would be helpful. Can you put it live somewhere?

06-30-2011, 07:10 AM
well when i put it live it doesnt show the wrapper div at all http://csdesigns.zymichost.com/test.html thats the url to test it on

06-30-2011, 07:17 AM
The floats need 'clearing'. Try;

.mainwrapper {
background-color: rgba(245,245,245,1);
margin-right: auto;
margin-left: auto;
width: 1100px;
overflow: hidden;
height: 1%;

BTW, think mainwrapper should be an ID really if it is used just once in the page.

06-30-2011, 02:45 PM
thank you so much man it worked!!!!

06-30-2011, 02:52 PM
thank you so much man it worked!!!!

You are welcome dude.