开发者

css overflow / inline elements

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

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

精彩评论

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