Reputation: 9
I have header which has ul tag with content inside. I can't inline them.
HTML
<div class="navbar-header">
<ul class="nav navbar-nav navbar-right">
<li>
<div>
<span><img src="1"></span>
<p class="p1">row information</p>
</div>
</li>
<li>
<div>
<span><img src="1"></span>
<p class="p1">row information</p>
</div>
</li>
<li>
<div>
<span><img src="1"></span>
<p class="p1">row information</p>
</div>
</li>
</ul>
</div>
Upvotes: 0
Views: 141
Reputation: 1292
1) Delete all your CSS and include the bootstrap css and js from CDN since you are using the bootstrap navigation syntax. 2) Change the p element to a span and you are good to go.
Upvotes: 1
Reputation: 1735
To inline them completely with images set p1 class display style to inline-block and remove flex-direction. Like this:
.p1 {
display: inline-block
}
https://jsfiddle.net/toL6f4h5/
Upvotes: 0