开发者

css overflow / inline elements

When you put an inline list of items in a div with a fixed width a开发者_如何转开发nd set overflow to hidden, the elements stack vertically.

Anyone have any css hacks to get them to remain inline while hidden. Possibly using overflow:hidden without a width?

Thank you in advance!


There are many methods that can be used to making a horizontal list. The main ingredient is "display: inline", applied to the "LI" element.

Read this article for details:

http://css.maxdesign.com.au/listutorial/horizontal_master.htm


Fixed! Have to put elements in a container with a null "big" width so it won't wrap. =P

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜