I have a table column.
I have always use px for the width.
<td width="100px"></td>
but suddenly today my superior told me not to use px since without it also will be the same.
<td width="100"></td>
this one means that it is also 100px? I have never learn it like this. I only know that i can use px, em or % but not without it. is it the right way? will different browser have different result? is it true that 100 = 100px?
Adding a
widthattribute is not css, it’s old-school HTML.If you want to change the style of the cell you use the style attribute:
I would recommend using an external stylesheet instead of adding the styles inline. You can probably save a lot of bandwidth from not repeating the inline styles over and over, even if they are machine generated.