Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fill in remaining space on each side of horisontal menu Re: Fill in remaining space on each side of horisontal menu

#61796
swoop
Participant

After posting yesterday i added a <li> contaiing a <div> with a special class just for filler.
this works just fine, but i have to hardcode the width manually and i would prefer a solution that simply fill in reamaining width somehow. I was hoping that a width of 100% on the filler element would work, but it takes up a brand new line filling the page-wrap completely :(

Of course what you suggest (and i did) with manually adding an element before and after the list that is filling the gap with width set in px manually works, but the other solutions would be more dynamic should there be extra menu points ect :)