I have a div where some anchor tags are stored, as shown below. As well as the <hr> for my page segment. however, even using a div as a block element will not cause the <hr> element to start on a new line, but align the <hr> next to the div.
how can i solve this?
<div id="inner"> <div id="headerBlock"> <a href='.actorgroup' id='346' onclick='return displayactorgroupFunc(this.id);'>Actor2</a> <span class='rowNumber2'> | </span> <a href='.actorgroup' id='15201' onclick='return displayactorgroupFunc(this.id);'>Actor1</a> </div> </div><hr/>
Css:
#headerBlock{ display: block; } #inner { padding:10px; display:block; float: left; } #inner a{ display:inline-block; padding-left:20px; line-height:20px; color:#808000; font-size:14px; text-decoration: none; }
source share