PDA

View Full Version : <dt> tags wont center proberly - temp fixed


Vaupell
12-16-2009, 08:49 PM
Haveing problems aligning text from phrases.

What im getting at the moment
107629

what i want
https://vborg.vbsupport.ru/attachment.php?attachmentid=107518&d=1260783637

At class start i just added alignment but didnt work..


<div class="postdetails" align="center">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}


Some of the items needs to be centered,
i added the line breaks, just stack them like before..


<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt></br> <dd>{vb:raw post.joindate}</dd></vb:if>


<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt></br> <dd>{vb:raw post.field2}</dd></vb:if>

the vbphrases wont center, but vbraw centers fine.

Vaupell
12-17-2009, 08:39 AM
sorta temp solved,,,

http://www.vbulletin.com/forum/showthread.php?331414-what-is-the-properties-of-the-tag


replaced all dt with dd tags

Lynne
12-17-2009, 03:38 PM
Could have done it with some css:
.postbitlegacy .userinfo {
text-align: center;
}
.postbitlegacy .userinfo .userinfo_extra {
float:none;
text-align: center;
}
.postbitlegacy dl.userinfo_extra dt {
float: none;
text-align: center;
}
.postbitlegacy dl.userinfo_extra dd, .postbitlegacy dl.userinfo_extra dd a {
text-align: center;
}

Vaupell
12-19-2009, 10:33 AM
got a update on my bug report on it..
it now says

Fixed (pending) so i guess in gold it will be okay :D