Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Give a line break without using <br/>

Tags:

html

css

I have a button over my div.

<button id="showmenu" type="button">Show menu</button>
<div class="sidebarmenu">
    Some code
</div>

The div is displayed right below the button. I want the button to be displayed with a line break. I know it is a bad practice to use <br/>. How do I give space without it?

like image 794
Bittu Avatar asked Dec 10 '25 21:12

Bittu


1 Answers

With css:

.sidebarmenu{
  margin-top: 20px;
}

Live example: http://jsfiddle.net/BhsYx/

like image 184
Ivan Chernykh Avatar answered Dec 13 '25 09:12

Ivan Chernykh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!