开发者

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/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜