HTML question about tables...?
When working with tables in Dreamweaver, any text I type in a cell automatically centers itself in the cell if the cell is longer than one row.
How do I keep the text at the top of the cell?
Other Answers:
oh i had the same problem, but when i edited it with notebook, it didnt do that, idk what to say, but i can say i had the same problem with dreamweaver, but my dad has done tables professionally, so i just asked him sorry
Use the following code:
<td style="vertical-align:top">Text</td>
Some will advise you to use valign. This is invalid and deprecated as of the HTML 4.01 Strict standard. Use CSS (as my example above).
<td style="vertical-align:top">Text</td>
Some will advise you to use valign. This is invalid and deprecated as of the HTML 4.01 Strict standard. Use CSS (as my example above).
<td valign="top" align="left">put tect here</td>
with 'valign' being the verticle, and 'align' being the horizontal alignment you'd like to use.
with 'valign' being the verticle, and 'align' being the horizontal alignment you'd like to use.
In either the td or tr tag (can't remember which) set the valign to top.
0 коммент.:
Post a Comment