kavita deshpande kavita deshpande - 1 year ago 74
CSS Question

How to force a list to be vertical using html css

I have a list i want to add to a

. Each listitem contains a
which in turn contain an image and a text string. The list must be vertical. I ve tried putting
for the
but the list is flowing left to right horizontally. How do I make the list vertical?

Answer Source

Try putting display: block in the <li> tags instead of the <ul>