How to align words in the same table cell?
Posted 30 July 2006 - 03:19 AM
Another question is: what is the child node of table element?
Thanks a lot!
Posted 30 July 2006 - 03:43 AM
Why not just use <div align="left"> for the stuff you want on the left, and <div align="right"> for stuff on the right?
Posted 30 July 2006 - 07:57 PM
<div align="left">This text is on the left...</div><br>
<div align="right">This text is on the right...</div>
I know that that works.
Posted 30 July 2006 - 09:54 PM
to do this, you'd need to enable a float on one of the elements:
<table style="width: 500px;"> <tr> <td style="text-align: left;"> <div style="float: right;">Sample text on the right.</div> Some text on the left. </td> </tr> </table>
as expected, the stuff in the DIV will float to the right of the regular content. be sure to place floated elements BEFORE the content you wish to float it next to, otherwise it will have no effect. for more info on floating/positioning, see:
Posted 03 August 2006 - 10:03 AM
<table> <tr> <td>stuff</td> <td>other stuff</td> </tr> </table>That should do the trick.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users