PDA

View Full Version : Alignment within Who's Online section - plz review my code


TAFJonathan
07-14-2009, 03:30 PM
Have a look at the busted alignment of my Who's Online bit, which is at the top of my home page (http://www.aviationforum.org).

I can't get the list of active users to stop being aligned at the far RIGHT of the cell.

Here's the relevant code:

<table>
<tr>
<td>

$vbam_location[taf4]
<br />

<if condition="$show['loggedinusers']">
<!-- logged-in users -->



<tbody>
<tr>
<td class="thead" colspan="2">


<a href="online.php$session[sessionurl_q]">Online Now</a>: &nbsp; $totalonline &nbsp; (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2">
<a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1">
<div class="smallfont">

<div><font size="-2">&nbsp; $activeusers</font></div>
</div>
</td>
</tr>
</tbody>
</td></tr></table>

<!-- end logged-in users -->
</if>






</td>
</tr>
</table>

Lynne
07-14-2009, 03:53 PM
You say you can't stop them from being aligned at the far left of the cell, however, you haven't done anything in the code to align them another way, nor have you said what you want/expect, so I'm really not sure what to suggest.

TAFJonathan
07-14-2009, 04:14 PM
You say you can't stop them from being aligned at the far left of the cell, however, you haven't done anything in the code to align them another way, nor have you said what you want/expect, so I'm really not sure what to suggest.

I'm sorry -- I meant far RIGHT. I can't get the active users list to get out of the far right of the cell.

My bad for the confusion.

Have a look at the page (http://www.aviationforum.org).

--------------- Added 1247602706 at 1247602706 ---------------

Anyone? If you have a look at AviationForum.org (http://www.aviationforum.org), you'll see that the list of active users is squeezed into the far right of the area throughout which you'd expect it to be displayed.

My code is above.

Lynne
07-15-2009, 02:42 AM
I have no idea what you want it to look like - I can only see what it does look like (the users listed in a colored box in the middle of the navigation box). An image to show what you want would really help. Also, I only see a large square box on most pages except the forum home page. Is that what it's supposed to be like?