Icon next to username

ibaker

Well-known member
I am having trouble placing an icon next to the username in the "Staff Online Now" box...no matter what I do it is placing the icon under the username and not next to it.

This is my code:

Code:
<xen:username user="$user" rich="true" />
 
<a href="javascript:X('{$user.username}')"><img src="../images/X.png "></a>
 
<div class="userTitle">{xen:helper userTitle, $user}</div>

This is what I end up with:
img1.webp
I can't find what class it is using or what is directing the img to be on the next line instead of nest to the username...any suggestions?...Thanks
 
Thanks Brogan, I tried span but that didn't work:
Code:
<span>
    <xen:username user="$user" rich="true" />
    <a href="javascript:X('{$user.username}')"><img src="../images/X.png "></a>
</span>
 
Tried float:
This placed the icon on the left of the username:
Code:
<span style="float:left;">
    <a href="javascript:X('{$user.username}')"><img src="../images/X.png "></a>
</span>
<xen:username user="$user" rich="true" />

And have tried other variants to get it to display on the right of the username but with no luck
 
Top Bottom