Why cant I specify the width and height of a cell in an html table?

Posted by Phil on Stack Overflow See other posts from Stack Overflow or by Phil
Published on 2012-03-22T23:21:40Z Indexed on 2012/03/22 23:29 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

I am using CSS but for the sake of quick testing i am just using a style tag. This is the code I am trying to implement:

echo "<td style='height=10px; width=10px;'>";

it makes sure that the max width of the cell is 10px however the height overflows with the text so becomes very large (high).

what I am trying to achieve is any information that is in that cell more than 30 charcters I want to hide so you cant see it.

(I know 30 charaters is more than 10px but I am just playing to see if it worked!)

Thanks guys.

© Stack Overflow or respective owner

Related posts about php

Related posts about html