Alfred
Alfred

Reputation: 21406

Auto adjust table row height keeping width fixed

I have a table containing many rows. I can allow a change in row height to fill the contents, but I want to keep my cell width fixed. Setting a max-width to cell solves the problem, but the content over flows to the next cell.. Can anybody have a solution in html/css or something else?

Upvotes: 2

Views: 4947

Answers (1)

Andy Edinborough
Andy Edinborough

Reputation: 4427

In addition to max-width, set overflow: hidden;. See http://jsfiddle.net/andyedinborough/nq7rA/1/

Upvotes: 2

Related Questions