html - How to align horizontally a jQuery UI button to a div? -
i have following html structure (this structure important me):
<div> <div class="element"> <div contenteditable="true" class="inputdiv"></div> </div> <div class="element" id="zbtn">ok</div> </div>
and css:
.inputdiv { width: 100px; height: 16px; overflow: hidden; padding: 3px 3px 2px; white-space: nowrap; border: 1px solid #aaa; border-radius: 2px; } .element { font-size: 11px; font-family: helvetica,arial; display: inline-block; }
i create simple jquery ui button div (this important):
$('#zbtn').button();
the button aligned in chrome, but not in firefox , ie.
please see image:
and jsfiddle:
add vertical-align:middle
.element
, updated fiddle http://jsfiddle.net/spllw/1/
Comments
Post a Comment