Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot type in textfields in IE11

In my site, I cannot type in textboxes on IE11 on Windows 7. Clicking the text input field, I can see the caret blinking outside the field, positioned in another place in the page. I can reproduce the problem across many computers with IE11.

Setting IE8 via Inspector solves the problem, with IE >= 9 it shows the problem. The site uses Twitter Bootstrap. I tried z-index fixes without success.

Site link: http://fortis7.moutheme.com/

like image 565
Marco Marsala Avatar asked Jan 22 '14 22:01

Marco Marsala


People also ask

How do I enable HTML5 in IE 11?

On the search bar, type Internet Options, and click on Internet Options from the results. Click on the Advanced tab. Under Multimedia, check Enable alternative codecs in HTML5 media elements. Restart your computer.

How do I change the default document mode in IE 11?

From the Settings dropdown, select F12 Developer Tools. Select the Emulation tab. Select Edge (Default) from the Document mode drop down. Select Default from the User agent string drop down.


2 Answers

I found out the box-sizing: border-box; did not work, so I changed it to content-box:

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
   /* IE10+ specific style */
   input:not([type="select"]),
   input:not([type="submit"]) {
     padding: 15px 20px;
     box-sizing: content-box;
     line-height: normal;
     width: auto;
     height: 15px;
     display: inline-block;
   }
}
like image 189
Maarten Wolfsen Avatar answered Oct 02 '22 14:10

Maarten Wolfsen


For me looks like >= IE8 has a problem with box-sizing css property.. it seems to be hiding text it cant fit.. I had to adjust my padding and font-size for IE to fix this issue. Not sure if this is the same issue you have.. but worth a shot.

like image 28
Jose Browne Avatar answered Oct 02 '22 14:10

Jose Browne