[SOLVED] Html what the heck?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Html what the heck?

Post 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>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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>
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Post by pinehead18 »

thank you
Post Reply