2

Firefox, does not seem to display the table with scrolling correctly. Safari, and Chrome are both displaying as expected, where they add a scroll bar for overflow-x. Does anyone have any suggestions on getting Firefox to respond?

<tr>
<td  colspan="5" style="max-width:980px; overflow-x: scroll; white-space: nowrap; ">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
</table>
</td>
</tr>
1
  • Do you have content in that nested table? Also, what version of Firefox & Chrome? Commented Jan 3, 2012 at 0:07

2 Answers 2

8

It sometimes happens that you cannot directly work on table cells (even though the specs say you should be able to do that). As a workaround, you can introduce an element that contains all of the contents of the cell and set properties on it, e.g.

<td  colspan="5"><div style="max-width:980px; overflow-x: scroll; white-space: nowrap; ">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
  ...
</table></div>
</td>

This workaround seems to help on Firefox (and on IE).

Sign up to request clarification or add additional context in comments.

Comments

2

Unless you fix the table layout (starting with table-layout: fixed; on the table itself) then then cell will always size to its content and therefore never overflow.

Comments

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.