Вопрос

My problem isn't simple and I can't show the code so I'll try to be precise.

I've got a table generated by a JSP (a tag created by a framework I can't control and specific to my company).

When the scrollbar on the body appear, the content of the "tbody" is moved to the left on every browser to let the place to the scrollbar. On IE 7, the content doesn't move and the scrollbar is on top of the table. I can't use width: 97% cause in case the scrollbar doesn't appear the tbody is moved anyway.

If someone got an idea :) Sorry for the absence of code ...

Это было полезно?

Решение

Solution :
Use a div around the table with a larger width (so it can contains the scrollbar).
Set table width to 97% so the scrollbar is outside the content.
Then the horizontal scrollbar does not appear.
The scrollbar is outside the table but it's less ugly.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top