I am a little puzzled by this. Here is what I have now:
------------------------------------------------------------------------------- | | | | | Item 1 | Item 2 | Last item | | | | | -------------------------------------------------------------------------------
There, the last li occupies only part of ul. I need it to look like this:
------------------------------------------------------------------------------- | | | | | Item 1 | Item 2 | Last item | | | | | -------------------------------------------------------------------------------
I can not use Javascript (or jQuery). I do not want to set the width of each li, since the size of the text can change, and I do not know how much li will be. I can have 5 or 3.
How to do it? Thanks.
Here is jsfiddle with some of my code. I need a light color to expand the rest of ul. JSFIDDLE
source share