• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Icon next to username

ibaker

Well-known member
#1
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.jpg
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
 

ibaker

Well-known member
#4
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>
 

ibaker

Well-known member
#5
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