How to align two buttons horizontally

How to make two buttons horizontally aligned in a div? I do not want a space between the two buttons.

+4
source share
3 answers

Well, by default they are aligned. Just check this piece of code and you will understand better :) Just remember to leave a space between the buttons.

+4
source

Float the buttons and add overflow: hidden to your container: http://jsfiddle.net/SdhQw/

+1
source

You can swim them.

 div button { float: left; margin: 0; } 
0
source

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


All Articles