Norman Posted October 26, 2007 Share Posted October 26, 2007 I have set a code that put more that one table in an other table. <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%" align="center"> <tr> <td class="thead"> <div style="font-size: 30px; text-align: center;"><if condition="$userinfo['field6']">$userinfo[field6]<else />Il Profilo di $userinfo[username]</if></div> </td> </tr> </table> <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="50%"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%" align="$stylevar[left]"> <tr> <td class="tcat" colspan="2"> <span style="float:$stylevar[right]" class="smallfont"> <if condition="$show['lastactivity']"> <div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span> </div> </if> <if condition="$show['currentlocation']"> <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time] </div> </if> </span> <div style="font-size: 20px;"> $userinfo[username] </div> </td> </tr> <tr> <if condition="$show['avatar']"> <td class="alt2" width="20%"> <img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> </td> <else /> <td class="alt2"> </td> </if> <td class="alt1" valign="top" width="80%"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="$stylevar[center]"> <tr> <td class="tcat"> <div style="text-align: center;">Informazioni</div> </td> </tr> <td class="alt1" width="100%"> <strong>$vbphrase[join_date]</strong>: $userinfo[datejoined] <strong>$vbphrase[total_posts]</strong>: $userinfo[posts] (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>) <strong>$vbphrase[birth_date]</strong>: $userinfo[birthday] <strong>$vbphrase[age]</strong>: $userinfo[age] </td> </tr> </table> </td> </tr> </table> </td> <td width="50%"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="$stylevar[right]"> <tr> <td class="tcat"> <div style="font-size: 20px;">Welcome..</div> </td> </tr> <tr> <td class="alt1" valign="top"> <if condition="$userinfo['field7']">$userinfo[field7]<else /><span style="font-style: italic;">$userinfo[username] non ha ancora scritto un messaggio di benvenuto per il suo Profilo.</span></if> </td> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="$stylevar[right]"> <tr> <td class="tcat"> <div style="font-size: 20px;">Bio</div> </td> </tr> <tr> <td class="alt1" valign="top" width="100%"> <if condition="$userinfo['field8']">$userinfo[field8]<else /><span style="font-style: italic;">$userinfo[username] non ha ancora scritto la sua biografia.</span></if> </td> </tr> </table> </td> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%" align="center"> <tr> <td class="thead"> <div style="font-size: 30px; text-align: center;">..:::Profilo:::..</div> </td> </tr> </table> But when I put a lot of words in fields that appear on those tables they don't go down (I don't know the right english word..). For example:This is what I have.. | Test on the table | This is what I want: | Test on || the table | Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2007 Share Posted October 30, 2007 Set a width to whatever you don't want to stretch. If it doesn't have a width then the browser will stretch it to match the size of the content. Link to comment Share on other sites More sharing options...
Norman Posted October 31, 2007 Author Share Posted October 31, 2007 I have already a width, first on the main table (100%), then on the td (100%). Link to comment Share on other sites More sharing options...
Synook Posted October 31, 2007 Share Posted October 31, 2007 Yes - make it smaller (e.g. 200px or similar) so that the text is forced to wrap (e.g. go onto a new line, "go down"). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.