geeta_m9
asked on
How do I get the contents in a table cell to wrap to the next line
I have the following HTML code:
<div align="center">
<p><table width="60%">
<tbody style= "line-height:12px; font-size:11px">
<tr>
<th height="20" bgcolor="#f3f3ea" colspan="4" align="left"><div align="center">UAB Terms</div></th>
</tr>
<tr>
<td ><div align="center"><a href="/barcelona/uab/calen dar/2014-2 015/fall-2 014" target="_self">Pre-establi shed Fall 2014</a></div></td>
<td ><div align="center"><a href="/barcelona/uab/calen dar/2014-2 015/spring -2015"targ et="_self" >Pre-estab lished Spring 2015</a></div></td>
<td ><div align="center"><a href="/barcelona/uab/calen dar/2014-2 015/spring -2015-regu lar"target ="_self">R egular Spring 2015</a></div></td>
<td ><div align="center"><a href="/barcelona/uab/calen dar/2014-2 015/summer -2015"targ et="_self" >Summer 2015</a></div></td>
</tr>
<tr>
<td colspan="4">
<hr />
</td>
</tr>
</tbody>
</table>
</p>
</div>
Currently, the value in the third column, "Regular Spring 2015" displays like this:
Regular Spring
2015
I would like to have it be displayed like so:
Regular
Spring 2015
How do I get the word "Spring" to appear on the next line?
Thanks.
<div align="center">
<p><table width="60%">
<tbody style= "line-height:12px; font-size:11px">
<tr>
<th height="20" bgcolor="#f3f3ea" colspan="4" align="left"><div align="center">UAB Terms</div></th>
</tr>
<tr>
<td ><div align="center"><a href="/barcelona/uab/calen
<td ><div align="center"><a href="/barcelona/uab/calen
<td ><div align="center"><a href="/barcelona/uab/calen
<td ><div align="center"><a href="/barcelona/uab/calen
</tr>
<tr>
<td colspan="4">
<hr />
</td>
</tr>
</tbody>
</table>
</p>
</div>
Currently, the value in the third column, "Regular Spring 2015" displays like this:
Regular Spring
2015
I would like to have it be displayed like so:
Regular
Spring 2015
How do I get the word "Spring" to appear on the next line?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked, thanks!
ASKER