Take a look at the fiddle here: https://jsfiddle.net/mv5ut6sw/
On my website, I have a set of links displayed in a <div>
at the top. To visually separate these links from the rest of the page, I want to add horizontal lines above and below the containing <div>
. Here is a simple example:
<hr>
<div style="float:left; width:100%">
<div style="float:left; margin-right:20px">
<ul>
<li><a href="/link1">Link1</a></li>
<li><a href="/link2">Link2</a></li>
</ul>
</div>
<div style="float:left; margin-right:20px">
<ul>
<li><a href="/link3">Link3</a></li>
<li><a href="/link4">Link4</a></li>
</ul>
</div>
</div>
<hr>
I am using bootstrap to enhance the appearance of the page. However, without bootstrap, the horizontal lines display as expected - one above and one below the link section. With bootstrap, both lines appear above the link section only.
I'm unsure about how to solve this issue without making changes to the bootstrap code itself. Is there any inline CSS that could help correct this odd placement?