Bootstrap CSS space between buttons in navbar

How to make space between buttons in navbar? I usually do this with   but now it does not work. Here is an example of what it looks like:

http://jsfiddle.net/W6hEa/

+6
source share
2 answers

you can try margin-left

here is the code

 .btn{ margin-left:10px; } 

here is an example: FIDDLE

+9
source

Copy and paste this into your style.css and assign it as a class attribute:

 .btn-margin-left { margin-left: 2px; } .btn-margin-right { margin-right: 2px; } 

Using

 <a href="URL" class="btn btn-default btn-sm btn-margin-left">Link</a> <button type="button" class="btn btn-default btn-sm btn-margin-left">Button</button> 
+6
source

Source: https://habr.com/ru/post/951055/


All Articles