Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Bootstrap Inline Lists with BG Color

How can I add background color to my inline list group:

<ul class="list-inline">
     <li class="list-inline-item">Item 1</li>
     <li class="list-inline-item">Item 2</li>
</ul>
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

I can use styles if necessary but I was hoping to use some of bootstrap's built-in styles.  For instance, this seems to work with list groups but not with online lists:

<ul class="list-group">
     <li class="list-group-item list-group-item-success">Item 1</li>
     <li class="list-group-item list-group-item-info">Item 2</li>
</ul>

Open in new window


I am looking for a similar approach to inline lists if possible.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just a color change for site organizational purposes.
Looking at your link, it looks like I should be using the navbar class.  I will switch to that.  Thanks!!
You are welcome.