I have a form with an input box that is absolutely positioned and has a transparent background:
.form-page input[type="text"] {
border: none;
background-color: transparent;
/* Additional styles like font-weight, font-size */
}
Oddly enough, in IE8 I am unable to select this input box by clicking on it. However, it works perfectly fine in Firefox. The same issue arises when using background: none
. Interestingly, if I change the background color like so:
background-color
and the input box becomes selectable. You can also click on the select box and focus on the input box by pressing Shift+Tab.<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html><head></head><body> <style type="text/css"> input[type="text"] { border: none; background: transparent; /*background-color: blue;*/ } #elem528 { position:absolute; left:155px; top:164px; width:60px; height:20px; } #elem529 { position:absolute; left:218px; top:164px; width:40px; height:20px; } </style> <img src="xxx.png" alt="" width="1000" height="1000"> <input id="elem528" maxlength="7" type="text"> <select id="elem529"></select> </body></html>