Work with IE to work with overflow

So, I have a table contained in a div. A table is bigger than a div. I do not want to resize the div manually, and all browsers except IE resize it to automatically contain the entire table. Without any changes to the overflow attribute, IE makes the last td overlap with the corresponding div border. If I set the overflow: auto ;, IE adds scrollbars, and other browsers still just resize the containing div.

Although we have a temporary fix in the above solution for using overflow: auto ;, I don’t think the client will be much happier with scrollbars than with an element that overlays the border. Is there something I can do to make IE behave like other browsers without manually resizing the contents of the div? Perhaps display: property?

The overlap image can be seen at http://i.stack.imgur.com/lwWUk.png .

All help is appreciated. Thank you all very much.

+3
source share
1 answer

, , DOCTYPE, ? , IE quirks, . , quirks doctype, -. doctype , , .

, HTML:

<!DOCTYPE html>

, , , - , . , . , JSFiddle ( ).

+1

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


All Articles