0

I have a list items which I am mapping on <ul> <li>.

<ul>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
<li>Item5</li>
<li>Item6</li>
<li>Item7</li>
<li>Item8</li>
<li>Item9</li>
<li>Item10</li>
<li>Item11</li>
</ul>

It display the items on the page like from left to right:

Item1 Item2 Item3 Item4 Item5
Item6 Item7 Item8 Item9 Item10
Item11

I want to display them from top to bottom like

Item1 Item4 Item7 Item10
Item2 Item5 Item8 Item11
Item3 Item6 Item9 

How can I display them from top to bottom?

Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
  • Are you using any server language like PHP ? If so, I can give you good answer ! – jaym Jun 14 '12 at 11:32
  • i am using c# and backend is in mvc view. – Rizwan Khalid Jun 14 '12 at 11:57
  • is generating hard coded like foreach(var item in list) {
  • item.Name
  • } – Rizwan Khalid Jun 14 '12 at 11:58
  • @ravi i am using c# and backend is in mvc view – Rizwan Khalid Jun 14 '12 at 12:16
  • While I don't have time to explore it right now, part of me is feeling that this might be possible with some floats or something in CSS.. –  Jun 14 '12 at 12:21
  • @joesavage float:left is set in css and width is set to 850px – Rizwan Khalid Jun 14 '12 at 12:33