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:

jq ui button next div

and jsfiddle:

http://jsfiddle.net/grigur/spllw/

add vertical-align:middle .element, updated fiddle http://jsfiddle.net/spllw/1/


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -