简体   繁体   中英

Aligning text in the upper right corner in a table cell without CSS?

I have this table an I want to align the "up right" text in the upper right corner of that cell. Thing is, I can't use CSS . I have no idea how to achieve that. Is there a way at all using pure HTML?

<table>
    <tr>
        <td>
            <font>Something</font> 
            up right
         </td>
     </tr>
</table>

This should solve your problem with no CSS

 <table>
        <tr>
            <td>
                <font>Something</font> 
                up right
             </td>
          <td valign="top" align="right">
                <font>Something</font> 
                up right
             </td>
         </tr>
    </table>

Valign : vertically aligns your content in the cell

align : Horizontally aligns your content in the cell.

use this combo to give top right alignment

Check this demo out http://codepen.io/anon/pen/yfbJj

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM