justin
justin

Reputation: 73

Having problems getting divs to line up properly

I'm having problems getting some divs to display inline. I've tried a bunch of things but nothing is working correctly. How do y'all normally do it? Floating them? Putting them in a list and lining that up? Maybe I'm not thinking of something =/

Thanks.

Upvotes: 0

Views: 156

Answers (2)

Gordon Gustafson
Gordon Gustafson

Reputation: 41209

You can either do it with float, absolute positioning, or tables (not reccommended for layout). Have a look at some tutorials, here's one that'll get you started :D

http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/

Upvotes: 0

x0n
x0n

Reputation: 52420

DIVs are "block" elements by default. If you want inline behaviour, use the style element "display: inline"

-Oisin

Upvotes: 1

Related Questions