PDA

View Full Version : floating div problem


charliestallingsdesigns
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

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

charliestallingsdesigns
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

Corrosive
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.

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

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

You are welcome dude.