I am trying to display 3 ul
lists in one line using Bootstrap classes. Each ul
is populated with links from a database using the Razor Engine
. The number of links in each list may vary, so how can I align them like the image shown?
Demo: http://jsfiddle.net/rygu8pqd/
https://i.sstatic.net/37ewF.jpg
<ul style="text-align:center;list-style-type:none;">
<li>
<a>item1</a>
</li>
<li>
<a>item1</a>
</li>
</ul>
</li>
</ul>
<ul style="border-right:2px red solid;border-left:2px red solid; text-align: center; list-style-type: none; display: inline-block" class="list-group">
<li class="list-group-item">
<ul style="text-align:center;list-style-type:none;">
<li>
<a>item2</a>
</li>
<li>
<a>item2</a>
</li>
<li>
<a>item2</a>
</li>
</ul>
</li>
</ul>
<ul style="text-align: center; list-style-type: none; display: inline-block" class="list-group">
<li class="list-group-item">
<ul style="text-align:center;list-style-type:none;padding-top:15px;">
<li>
<a>item3</a>
</li>
<li>
<a>item3</a>
</li>
<li>
<a>item3</a>
</li>
<li>
<a>item3</a>
</li>
</ul>
</li>
</ul>