Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4 - Inline List?

I migrated a site from Bootstrap 4 alpha 6 to Bootstrap 4 Beta 1.

<ul class="nav navbar-nav list-inline">   <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">FB</a></li>   <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">G+</a></li>   <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">T</li> </ul> 

Now, the items align vertically instead of horizontally. How do I create an inline list with the Bootstrap 4 beta?

like image 776
user70192 Avatar asked Aug 12 '17 12:08

user70192


People also ask

How do I create an inline list in bootstrap?

Placing Ordered and Unordered List Items Inline. If you want to create a horizontal menu using the ordered or unordered list you need to place all list items in a single line (i.e. side by side). You can do this simply by adding the class . list-inline to the <ul> or <ol> , and the class .

How do I list horizontally in bootstrap?

If you want the list items to display horizontally instead of vertically (side by side instead of on top of each other), add the . list-group-horizontal class to . list-group : First item.

Which class creates a list of items in bootstrap 4?

list-group and . list-group-item classes to create a list of items. The . list-group class is used with <ul> element and .

What is inline bootstrap?

The display property in Bootstrap is used to set an element's display property. The utilities such as block, inline etc are to set the element's display property. The display property classes of bootstrap help to directly set the CSS display property for an element.


Video Answer


1 Answers

Bootstrap4

Remove a list’s bullets and apply some light margin with a combination of two classes, .list-inline and .list-inline-item.

<ul class="list-inline">    <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">FB</a></li>    <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">G+</a></li>    <li class="list-inline-item"><a class="social-icon text-xs-center" target="_blank" href="#">T</a></li> </ul> 
like image 70
Kondal Avatar answered Sep 21 '22 06:09

Kondal