I have the following HTML:
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title text-center">Welcome to the Information Management Hub</h3>
</div>
<div class="panel-body">
<div class="btn-group btn-group-lg">
<ul class="central-nav">
<li><%= link_to "Customer Information", customer_information_path, :class => "btn btn-default btn-lg" %></li>
<li><%= link_to "Customer Information", customer_information_path, :class => "btn btn-default btn-lg" %></li>
<li><%= link_to "Customer Information", customer_information_path, :class => "btn btn-default btn-lg" %></li>
<li><%= link_to "Customer Information", customer_information_path, :class => "btn btn-default btn-lg" %></li>
</ul>
</div>
</div>
</div>
And here is my customized CSS beyond Bootstrap:
.central-nav {
list-style-type: none;
width: 100%;
}
.central-nav li {
display: inline-block;
}
I have tried numerous methods to have the list items expand to the width of the unordered list's parent container (div class="panel-body"
) and have been unsuccessful.
Is it possible to have the list items expand to the width of the unordered list's parent container?