2

How can you put an overflow property on a cell in a table?

http://jsfiddle.net/e8Bxj/

table { width:100px; height:100px; } td.content { overflow:auto; } <table> <tr> <td>hmm</td> </tr> <tr> <td class="content"> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> sadfasf<br> </td> </tr> <tr> <td>hmm</td> </tr> </table> 

3 Answers 3

2

You need to wrap the overflowing content in div.

http://jsfiddle.net/e8Bxj/1/

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

Comments

1

you just simply add

display:inline-block; 

into the td , like this

id.content { display:inline-block; overflow:auto; } 

Comments

0

Try this fiddle

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.