I have a list I want to split into 2 cols.
I can do this but simply using
li {
float: left;
width: 50%;
}
but I want the 2 columns to be listed vertically, not horizontally.
Eg, instead of
A B
C D
E F
G H
I want:
A E
B F
C G
D H
I need to apply styles to all elements including and after the 5th child to float them right. Something like:
li {
float: left;
width: 50%;
}
li:nth-child(5):after {
float: right;
}
Would anyone know if it is possible to do this using only CSS?
` to make 2 separate lists, for example. Hope that helps.
– MeltingDog Jan 13 '17 at 06:10