table - Set th or td height in HTML for one column -


I use & lt; Th & gt; Trying to set the size. I

& lt; Thth = 100 & gt; Something like was trying to & lt; Tr & gt; ( & lt; tr width = 100 & gt; )

The size of the above column Not at all.

You are trying to use inline style inside your HTML tags First, I suggest I'd like you to have code around your unit like & lt; Th width = "100" & gt; & Lt; / Th & gt; In addition, you are not defining the unit of tag measurements you can use: & lt; Th width = "100px" & gt; & Lt; / Th & gt; or & lt; Width = "100%" & gt; & Lt; / Th & gt; I think you can also do inches and centimeters be careful while using the inline style 'length' as ​​a webpage.

Another way you can do this is using CSS. Inside your head tag, a & lt; Style & gt; The tag can be in. You can: . Measurement {width: 100px; } Note that this should not be a pixel, then on any tag you want 100 pixels wide, you do this: & lt; th class = "width" & gt; & Lt; / Th & gt; or & lt; tr class = "measure" & gt; & Lt; / TR & gt; . Hope it helps!

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -