开发者

How to center a ul (nav) that has flexible width

I am trying to create the nav of

http://forrst-production.s3.amazonaws.com/posts/snaps/59125/mega.jpg?1297328693

the nav width will expand or contract 开发者_JAVA百科according to the width of inner list items. How can I acheive that? or must I set a fixed width for the nav?


Make each item and the ribbon ends display:inline-block, then use text-align:center on the parent.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜