EDIT:
To do the style straight in the tag you can use the style=""
to put the width
It’ll stay that way:
<table border="1">
<tr>
<td style="width:100px">100px</td>
<td style="width:200px">200px</td>
</tr>
</table>
RBZ believes that in this link the source refers to width
right in the type tag:
<td width="100px"> isso é errado mesmo!
Note that all link attributes are tag properties <td>
as colspan
, nowrap
, align
etc. This does not refer to width
of the CSS!
Words from the Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
Usage Note: Do not use this attribute, as it has been deprecated. The Rules should be defined and Styled using CSS. Use the width
Property Instead.
That is, use the width
by CSS. As in the example below.
.gg {
width: 100px;
}
.ggg {
width: 200px;
}
<table border="1">
<tr>
<td class="gg">100px</td>
<td class="ggg">200px</td>
</tr>
</table>
No problem young man, now it’s easier to understand even rss. I’ve even edited my answer with your solution. If you want to work with an external CSS you can, then use a compiler that takes your css and puts it right in the tag as I did in the example. Right here you have an online tool that helps with this, it takes your . css and puts the tag for you in the whole file. http://divtable.com/table-styler/
– hugocsl