Text and tables

  • Thread starter Thread starter sandgroper
  • Start date Start date
S

sandgroper

-- With all parameters of a table set, (say 600x600) I add text which will
not wrap when I reach the edge of the table. The table just stretches. I have
no image in the table to wrap around. I have checked my HTML and it reads
<td>. How can I fix this problem please?
Sandgroper
 
It is almost impossible to suggest solutions to rendering/editing problems
without seeing the page, or at least ALL the relevant code (HTML, CSS,
JavaScript...)
I am sure there is more HTML involved than just <td>, for example there
should be </td>, not to mention <tr> etc., and where did all those
parameters go?

Please give a link to the page.
 
Thank you for your response. For some reason my problem has solved itself.
However please see the following script and kindly let me know the outcome so
as I may be aware in the future.
Kind Regards
David
Ps. I am not able to open the email sent me so I am unable to rate your
response, but thanks anyway.


<td width="10" background="line_vlred.gif" rowspan="2"> </td>
<td bgcolor="#FFFFFF" valign="top" width="500" height="420">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="450"
id="table6" height="312">
<tr>
<td>
<img border="0" src="Sue-Funerals-1.jpg" width="500"
height="420"></td>
</tr>
</table>
</div>
</td>
<td bgcolor="#FFFFFF" valign="top" width="663" height="420">
<font size="7">TEST test test test test test
test sest test test test test test test te</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="top" width="1163" colspan="2">
</td>
</tr>
</table>
</div>
<p> </p>
<p> </p>
</td>
<td width="11"> </td>
 
In IE, that should work without problems. In other browsers, however, you
may find that content (particularly the bottom of the large image)
disappears. This is because the (unnecessary) table in the div has a
height set that is smaller than the image height. The height attribute in
a table tag is invalid HTML, but some browsers will enforce the height
setting. IE will ignore that attribute if the content requires additional
height.

In general - there are exceptions - you should avoid setting the height
attribute for any container (<td>, <div>, <table>) since content in these
may need to expand - and users _will_ increase font size in order to read
small print.
 
Back
Top