简体   繁体   中英

Full width left-aligned list

Is it possible to stretch and unordered list to fill the full page-width; floating list-items (left) inside of it, without list-items getting clipped if they overflow (hidden) the unordered list?

If I simply do overflow: none; on the unordered list, whatever list-items are inside, which wont fit a 100 percent, are not shown.


This is what I want...

http://roosteronacid.com/stackoverflow.png

Notice that the first and third list-items are shown, even if the unordered list isn't able to show/house them in their full width.

You should set ul to display: table, and li to table-cell. Here is example: http://jsfiddle.net/simoncereska/4w92q/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM