View Full Version : Aligning divs


Brian-W.O.G
07-09-2006, 11:18 PM
Hey all, I have been using tables to make my layouts for a while, but now I want to try to learn div layouts aswell. But, my question is how to make one div be aligned below another? I ask this because I was trying to make a left nav' bar with divs that float to the left. But when I tried to use the <br> tag a div didn't quite go under the one above it. It went below the over above it and to the right. Anybody know how to fix this problem (if there is a way)?

God bless

BrandonLee
07-10-2006, 03:58 AM
I'm a little confused with your issue. Why don't you jsut have one div for the left, one for the middle and (maybe) one for the right in one container? And then you have one for the footer with the style attribute clear:both;

Brian-W.O.G
07-10-2006, 05:58 PM
Ah, I think I fixed it now. When I tried to make a left nav' bar, I would try to use a div for every button (becuase I'm so use to using tables). But when I added a border to the divs, they would cascade to the right almost like a stair way. But I figured out a way to get around this problem. Thanks for the help!

God bless