Looking to split a list into 2 columns, displayed vertically rather than horizontally. Currently achieved with the CSS:
li {
float: left;
width: 50%;
}
However, I need all elements past the 5th child to float right. Something like:
li {
float: left;
width: 50%;
}
li:nth-child(5):after {
float: right;
}
Is it possible to achieve this layout using only CSS?