开发者

How do I align text in "top right"?

I have the following table.

<table>
    <tr>
        <td align="right">
            <b>Car Name:</b>
        </td>
        <td>
            <div><%=Model.DataMayLoad1%></div>
            <div><%=Model.DataMayLoad2%></div> 
            <div><%=Model.DataMayLoad3%></div>
            开发者_StackOverflow<div><%=Model.DataMayLoad4%></div>
        </td>
    </tr>
</table>

The "Car Name:" column is right aligned, but in the center. Is there a way to align that column to the top right corner?


<table>
    <tr>
        <td align="right" style="vertical-align: top;">
            <b>Car Name:</b>
        </td>
        <td>
            <div><%=Model.DataMayLoad1%></div>
            <div><%=Model.DataMayLoad2%></div> 
            <div><%=Model.DataMayLoad3%></div>
            <div><%=Model.DataMayLoad4%></div>
        </td>
    </tr>
</table>


Use: <td align="right" valign="top">

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜