Kyle Kyle - 1 month ago 6
CSS Question

Resize TD in a table

I am currently re-building a table display page, just wanted to know if it's possible to resize a TD without inline styles, like add a class with width and height?

Example:

<td class="Td_class">Blah</td>

.Td_class
{
height:30px;
width:80px;
}


Probably can, just wanted to make sure for when I make this table.

Answer

Yes, you can. I wouldn't call that resizing however. You are effectively setting the width and height of the table cell. Resizing is normally synonymous to manipulating the DOM with JavaScript.