开发者

Having problems getting divs to line up properly

开发者 https://www.devze.com 2022-12-09 07:33 出处:网络
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

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消