I have 3 buttons next to each other and I wanted them to have 1px of margin just between them but it's getting much more:
Thehtml:
<divclass="popup">
<p id="popupText">TRUCO!</p>
<div class="popup-buttons">
<button>SIM</button>
<button class="truco">SEIS!</button>
<button>NÃO</button>
</div>
</div>
Here's the css:
* {
border: 0;
box-sizing: border-box;
margin: 0;
padding: 0;
}
button {
background: #f00;
cursor: pointer;
display: inline-block;
font: 24px "Alfa Slab One", cursive;
margin: 1px;
text-shadow: 1px 1px #fff;
width: 150px;
}
.truco {
background: #ff0;
}