PHP script return 20 UL LIST values like,
< ul >
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
< /ul >
CSS :
<style type="text/css">
#limheight ul{margin:0;padding:0;list-style:none;}
#limheight
{
height: 300px; /*your fixed height*/
-webkit-column-count: 5;
-moz-column-count: 5;
column-count: 5; /*3 in those rules is just placeholder -- can be anything*/
} #limheight li {
display: inline-block; /*necessary*/
}
</style>
How to display UL LIST into row wise 5 columns like
A B C D
E F G H
I J K L
M N O P
Q R S T
Current Output :
A B C DE F G HI J K LM N O PQ R S T