vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   valign="middle" question (https://vborg.vbsupport.ru/showthread.php?t=88897)

sabret00the 04-10-2004 09:18 AM

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;">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a>&nbsp;</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>&nbsp;</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>&nbsp;</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>


Tony G 04-10-2004 12:44 PM

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. ;)

sabret00the 04-10-2004 01:11 PM

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 :(

sabret00the 04-10-2004 06:06 PM

*bump*

sabret00the 04-11-2004 07:35 AM

help :(

Zachery 04-11-2004 06:00 PM

I want to say valign isnt a valid XHTML :/ there for its not going to work.

sabret00the 04-11-2004 06:03 PM

what would you suggest doing then zach?

and how can it not be valid xhtml? valign > *

assassingod 04-11-2004 06:51 PM

By default, dont tables vertically align automatically?

sabret00the 04-11-2004 07:16 PM

they valign in the middle but the divs are messing up the vertical alignment :(

Tony G 04-12-2004 02:25 AM

Here is two things that could possibly work:

Use "center" instead of "middle"
Try doing it without the style variable.


All times are GMT. The time now is 08:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01459 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete