📜 ⬆️ ⬇️

IE layout

Much has already been said here about the different types of web pages in IE and FF browsers (Safari, Opera).

Today I ran into a real problem. IE 7 does not stretch the input field to the full width of the screen, but shrinks it to about 300px. At the same time, ALL other browsers display the field correctly. Here is the code:

... form id = "form1" name = "form1">
... input name = "textfield" type = "text" style = "width: 100%;">
')
Anyone wondering what to do with this?
I see that on Yandex `e field stretches in width in all browsers ...

So, the solution: prescribe the width: 100% not only in the “style” of the “input” element of the form itself, but also in the parent container (in my case, in a cell of the table containing the form element).

Thanks ya.ru for the source code.)

Source: https://habr.com/ru/post/22253/


All Articles