0

I am currently testing multiple behaviors of the element and one is particularly challenging.

Objective: prepare a table with a fixed and a with a fixed height and scroll-y. (this has been done)

Limitation: the table is huge and extends out of the browser window (therefore only visible by scrolling horizontally in the browser).

The issue: when the table extends out of the browser window, the specified widths are not okay anymore and the are not vertically aligned with the .

Exemple here : http://codepen.io/Carine/pen/xqKDa

What do you think? Have you encountered this problem before?

Thanks in advance,

4

1 に答える 1

1

min-width および max-width プロパティを追加します。

これを試して:

th, td {
  width: 160px;
  max-width:160px;
  min-width:160px;  
}
于 2013-11-13T11:22:47.450 に答える