PDA

View Full Version : having trouble with divs


wolfmanbc
12-14-2008, 09:13 PM
I am trying to place two divs next to eachother but everytime I try to place the div, it goes underneath it. how can i have two divs side by side?

coloeagle
12-14-2008, 09:20 PM
You can use css float

coloeagle
12-14-2008, 09:25 PM
Divs falling beneath each other is normal behavior. What you're wanting to do is modify normal behavior.


.divone {
float:left;
width:200px;
height:200px;
}
.divtwo {
float:left;
width:200px;
height:200px;
}

wolfmanbc
12-14-2008, 09:47 PM
awesome, thank you

coloeagle
12-14-2008, 09:50 PM
Your welcome, glad it worked for you.