vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Help (https://vborg.vbsupport.ru/showthread.php?t=115845)

cayote 05-17-2006 04:09 AM

Help
 
Anyone available for a quick question? I need to center a header graphic and it's got me flummoxed. Yeah I'm a newb

Adrian Schneider 05-17-2006 04:11 AM

<div align="center">{image}</div> should work

cayote 05-17-2006 04:23 AM

I think this is the code that is affecting it?:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
                &nbsp;
        </td>
</tr>
</table>
<!-- /logo -->

Not sure. Anyway my graphic is fine but it is left side and big blank on right..bah. Did a search of forums (several actually) and can't find any help...probably meaning it's so basic only a goofy newbie like me would ask how. [EDIT] when I change
Code:

<td align="$stylevar[left]">
to
Code:

<td align="$stylevar[right]">
it goes to the right but when I change it to center...it goes back to the left...any ideas?

SixteenOhNine 05-17-2006 04:47 AM

Simply replace the above with align="center". You can also drop the align="" altogether and replace it with style="text-align: center;" and it will work just the same :).

cayote 05-17-2006 04:59 AM

Quote:

Originally Posted by SixteenOhNine
Simply replace the above with align="center". You can also drop the align="" altogether and replace it with style="text-align: center;" and it will work just the same :).

Sorry for my stupidity, I'm not getting you... replace what? The whole TD statement?

SixteenOhNine 05-17-2006 05:14 AM

Replace the align="" with either align="center" or style="text-align: center;"

Freesteyelz 05-17-2006 05:33 AM

Quote:

Originally Posted by SixteenOhNine
Replace with style="text-align: center;"

Use this one whenever possible. :)

cayote 05-17-2006 06:10 AM

Quote:

Originally Posted by Freesteyelz
Use this one whenever possible. :)

Ok will try thanks...assuming that 'text' statement is gonna work with the graphic...let you know.

Nope that didn't work.

Freesteyelz 05-17-2006 06:30 AM

It should if you have only one <td> tag. Try replacing:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]">
                &nbsp;
        </td>
</tr>
</table>
<!-- /logo -->

With:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td style="text-align:center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->


cayote 05-17-2006 06:37 AM

Ahhhh....I see, that makes sense...I'll try that and let you know...thanks!

That did it!!! Thanks a bunch guys! I love this place...support from the user community is awesome! Thanks again! :banana:


All times are GMT. The time now is 10:40 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.01159 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete