Page 1 of 1

Html what the heck?

Posted: Wed Aug 11, 2004 12:02 pm
by pinehead18
Ok this is my html code. What happens is the first td which is 60% in width takes up like 95% and the second td which is suppose to be 40% only has like 5% width space. I can change the widths in the code yet the actual width will not change in the html. Thank you

<table class=\"table2\">
<tr><td width=60% align=left bgcolor=#CDCDCD>Posted By: <a href=/myprofile/$author>$author</a> |
Joined: $cdate | Posts: $posts</td><td width=40% align=right>$edit</td></tr>
<tr>
<td width=100%>". nl2br($body) ."
</td>
</tr>
</table>

Posted: Wed Aug 11, 2004 12:04 pm
by feyd
your body output's td is set to 100% width, and is not a colspan, so yeah, that makes sense.. :P

Code: Select all

<table class="table2">
<tr><td width=60% align=left bgcolor=#CDCDCD>Posted By: <a href=/myprofile/$author>$author</a> |
Joined: $cdate | Posts: $posts</td><td width=40% align=right>$edit</td></tr>
<tr>
<td colspan=2>". nl2br($body) ."
</td>
</tr>
</table>

Posted: Wed Aug 11, 2004 12:27 pm
by pinehead18
thank you