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,

2
  • Can you provide more info? What do you mean by 'the specified widths are not okay anymore and the are not vertically aligned with the .' Commented Nov 13, 2013 at 11:18
  • try min/max-width, here's your modified example:codepen.io/anon/pen/kIxnz Commented Nov 13, 2013 at 11:26

1 Answer 1

1

Add min-width & max-width properties:

try this:

th, td {
  width: 160px;
  max-width:160px;
  min-width:160px;  
}
Sign up to request clarification or add additional context in comments.

1 Comment

@Carine: I'm glad I could help... please mark it as answer so that others would get in one go :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.