The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
valign="middle" question
how do i get all of this to vertically align to the middle?
HTML Code:
<tr> <td class="thead" $scrolltothis <if condition="$bbuserinfo[userid] > 0">style="padding: 1px"</if> valign="middle"> <div class="normal" style="float:$stylevar[right]; vertical-align: middle;"> <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> </if> <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if> $post[iplogged] </div> <div class="normal" style="vertical-align: middle"> <!-- status icon and date --> <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a> <if condition="!$show['start_until_end']"> $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> <else /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase> </if> $post[firstnewinsert] <!-- / status icon and date --> </div> </td> </tr> |
#2
|
||||
|
||||
Hmm, I don't see where else you could even add a vertical align, you've filled all the places. And it still doesn't work?
The table tag that this code you've posted is in may possibly have something to do with it. Sorry if I missed an obvious one, it's 1am and I'm half asleep. |
#3
|
||||
|
||||
it's the two div's, the first one valign's to the top and the bottom one to the bottom, i dunno what's wrong with it, it seems to be a product of actual jelsoft coding
|
#4
|
||||
|
||||
*bump*
|
#5
|
||||
|
||||
help
|
#6
|
||||
|
||||
I want to say valign isnt a valid XHTML :/ there for its not going to work.
|
#7
|
||||
|
||||
what would you suggest doing then zach?
and how can it not be valid xhtml? valign > * |
#8
|
||||
|
||||
By default, dont tables vertically align automatically?
|
#9
|
||||
|
||||
they valign in the middle but the divs are messing up the vertical alignment
|
#10
|
||||
|
||||
Here is two things that could possibly work:
Use "center" instead of "middle" Try doing it without the style variable. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|