html - table-cell span wrong height -
i have fiddle, going on, span bigger should be.
html
<div class="input-group"> <input type="text" class="input-group-addon rounded-left" placeholder="search music"> <span class="input-group-addon">test</span> <span class="input-group-addon rounded-right">search</span> </div>
css
.input-group { display: table; order-collapse: separate; } .input-group-addon{ border: 1px solid #333; display: table-cell; height: 50px; }
simply add "line-height" propery value equal "height". in case "50px":
.input-group-addon { border: 1px solid #333333; display: table-cell; height: 50px; line-height: 50px; }
Comments
Post a Comment