html - Form input is not clickable on an inline form -


with latest update of chrome revision 19.0.1084.52 notice strange behavior on forms on our website.

when form has style display:inline , position:relative , input wrapped in div floats input not selectable anymore

here simple example of bug (check in chrome)

<!doctype html>  <html> <head> <title>testcase input not selectable</title>  </head> <body>      <form action="" method="get" style="display:inline; position:relative">         <div>             <label>test1</label>             <input id="test1" name="test1" type="text" value="clickable"/>         </div>         <div style="float: left;">             <label>test2</label>             <input id="test2" name="test2" type="text" value="not clickable"/>         </div>         <div style="clear:both;"><input type="submit" value="submit"></div>     </form>  </body> </html> 

is browser bug or style not possible?

hey replace float:left inline-block

as

<form action="" method="get" style="display:inline; position:relative">     <div>         <label>test1</label>         <input id="test1" name="test1" type="text" value="clickable"/>     </div>     <div style="display:inline-block;">          <label>test2</label>         <input id="test2" name="test2" type="text" value="not clickable"/>     </div>     <div style="clear:both;"><input type="submit" value="submit"></div> </form> 

live demo http://jsfiddle.net/t4a3r/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -