It would be beneficial to utilize the float
property in your CSS instead of using display: table-cell
.
After making adjustments to your code, here is the updated version. Also, if you opt for float
, remember to incorporate a clear floating method within the container (#select).
#select {
margin: 0 auto;
max-width: 300px;
/* Clear floating method: use 'overflow:hidden' */
overflow: hidden;
}
#select .btparent {
border: 5px #AEE239 solid;
color: #2D332D;
text-align: center;
text-decoration: none;
vertical-align: middle;
font-family: Palatino;
font-size: 16px;
background: #D9E6BB;
padding: 10px;
width: 100px;
/* Updated here */
height: 20px;
display: block;
float: left;
margin-right: 10px;
/* ------------- */
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
}
I trust this information proves to be useful for your project.