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 th开发者_如何学JAVAem? Putting them in a list and lining that up? Maybe I'm not thinking of something =/
Thanks.
DIVs are "block" elements by default. If you want inline behaviour, use the style element "display: inline"
-Oisin
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/
精彩评论