PDA

View Full Version : How to adjust text next to avatar?


shibby2
04-10-2018, 04:22 AM
Hey everyone, would you know how to adjust the text (username and post date) in relation to the avatar? Right now the text is aligned with the bottom of the avatar, but I would like it to be aligned in the middle of the avatar.

Here is the code currently:

<div class="$post[statustitle] windowbg2" id="post$post[postid]">
<a name="post$post[postid]"></a>

<if condition="$show['avatar']">

<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl] width="44px" height="44px" <phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>

</if>

<a href="member.php?userid=$post[userid]">$post[username]</a> $post[postdate]

</div>


Any help is appreciated, thanks! :)

PinkMilk
04-12-2018, 02:07 PM
<div style="text-align:center;" class="$post[statustitle] windowbg2" id="post$post[postid]">

This should centre everything in that div tag.

shibby2
04-13-2018, 12:00 AM
Awesome, thanks so much! :)