Exploring the world of divs and buttons led me to an interesting discovery: removing a float creates a natural margin. Upon entering this styling:
body {
background: gray;
}
button {
font-size: 17px;
color: white;
margin-left: 0px;
margin-right: 0px;
border: 0;
width: 100px;
height: 40px;
text-align: center;
vertical-align: middle;
background: rgba(0,0,0,0.0);
transition: background 400ms;
-webkit-transition: background 400ms;
}
button:hover {
background: rgba(0,255,255,0.3);
}
JSFiddle : http://jsfiddle.net/uBBeX/
(Notice the slight margin between the buttons)
Is there a way to eliminate this "natural" margin without relying on floats?
Note: My aim is to remove the margin only for the buttons, nothing else.