If I have a table with only 1 cell, and I set its width and height in its inline style to be a certain amount of pixels (fixed not percentage). What CSS property or attribute is there that will ensure the dimensions on the cell does not increase no matter how much content there is in it. I noticed on my cell, that when I add text, the dimensions still change even though I set it.
Asked
Active
Viewed 6,087 times
2 Answers
3
Set the table-layout to fixed and the overflow to hidden.
table {
overflow:hidden;
table-layout:fixed;
}

j08691
- 204,283
- 31
- 260
- 272