Let\'s say I have this
- test
- test
- test
- test
You can use column-gap to do what you want, though since one cannot use calc(100% - liWidth * colCount)
as a value for column-count
, you'd have to use some javascript right now
function calcGap() {
var gap = window.innerWidth - (columnCount * listWidth) + "px";
ul.style.webkitColumnGap = gap;
ul.style.columnGap = gap;
}
calcGap(); // Fire on load
window.onresize = calcGap; // Fire on window resize
Demo
Using this method you can have whatever text-align
you want as well as not messing up other alignment properties