.className { }
You can put your buttons in a container with the property of
.class { display: inline-block; }
inline block will make the elements have the minimal width around your button and also be a block element at the same time, or you can give your buttons the inline-block property as well