Aligning data in a table
Posted
by Hulk
on Stack Overflow
See other posts from Stack Overflow
or by Hulk
Published on 2010-06-17T05:09:32Z
Indexed on
2010/06/17
5:13 UTC
Read the original article
Hit count: 434
In the following table, how do I align the data in td
cells such that we do not get a horizontal scroll bar, using CSS?
<table>
<tr><th>name</th>
<th>info</th></tr>
<tr><td>Harry</td>
<td>suminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfosuminfo<td></tr>
<tr><td>test</td><td>test data</td></tr>
</table>
© Stack Overflow or respective owner