I got the following code:
<div style="width: 300px; height: 100px; border: 1px solid red;">
<a href="#" style="height: 10px; width: 50px; border: 1px solid black;">MY BUTTON</a>
<hr />
</div>
When I use float right in the button, the hr goes up. How can I prevent this?
Try
clearing it.