vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't center my header (https://vborg.vbsupport.ru/showthread.php?t=169302)

katie hunter 01-31-2008 11:27 PM

Can't center my header
 
1 Attachment(s)
Hey,

I am trying to center my header but it just doesn't work, i tried playing around and still didn't get how to center it.

or trying to use a bigger banner , width wise
Quote:

I can't even use a bigger banner =/ current default width 516, if i use a banner around 700 width, it doesn't show it all, it only show it until the 516 width, i tried to edit the header code from 516 to 700 and the banner was even more messed up.
Header code

Code:

<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr>
<td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output


Reecey 02-01-2008 06:17 AM

Header code

Code:

<!-- logo -->
<a name="top"></a>
<td align="$stylevar[center]">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr></td>
<td align="$stylevar[left]"><td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="$stylevar[right]"><td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Try that if it dont work post back

SpreadingLight 02-01-2008 06:24 AM

Can something like this be done to the Forum Jump also, to center it?

Reecey 02-01-2008 06:27 AM

i will just check how i centered the header on my forum ill post back or edit.

[edit] yeh that should work

SpreadingLight 02-01-2008 08:37 AM

Thanks for checking. Now I have to see how exactly I modify the code to work with $forumjump.

I tried

Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center">
$forumjump (and all the rest of the forumjump code)
</td>
</tr>
</table>

and the forumjump menu was aligned to the left.

The code worked at this neat test table html window:
http://www.davesite.com/webstation/html/chap12.shtml

There seems to be some code aligning the forumjump code to the left.


ADD: apologies for interrupting the thread :o I had thought the original question was solved.

katie hunter 02-01-2008 06:17 PM

Quote:

Originally Posted by Reecey (Post 1433721)
Header code

Code:

<!-- logo -->
<a name="top"></a>
<td align="$stylevar[center]">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr></td>
<td align="$stylevar[left]"><td valign="top" width="296"><img src="$stylevar[imgdir_misc]/header_left.jpg" width="516" border="0"></a></td>
<td align="$stylevar[right]"><td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</center>

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Try that if it dont work post back

I've tried it but it didn't work. It is so buggy and the guy who made it , didn't tell me how to center it.

katie hunter 02-02-2008 11:46 PM

I can't even use a bigger banner =/ current default width 516, if i use a banner around 700 width, it doesn't show it all, it only show it until the 516 width, i tried to edit the header code from 516 to 700 and the banner was even more messed up.

Freesteyelz 02-03-2008 12:10 AM

Briefly looking over your code the <td> tags are out of place. While the code (below) may not resolve the entire issue it will make things more managable:

Code:

<!-- logo -->
<a name="top"></a>
<div style="margin:0 auto">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/header_bg.jpg">
<tr valign="top">
<td align="$stylevar[left]" width="516px"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/header_left.jpg" border="0" /></a></td>
<td align="$stylevar[right]"><img src="$stylevar[imgdir_misc]/header_right.jpg" alt="" /></td>
</tr>
</table>
</div>
<!-- /logo -->
 
<!-- content table -->
$spacer_open
 
$_phpinclude_output


After you apply these changes we can go from there. Since I don't have the URL to your site I'll need to see the images:

header_bg.jpg
header_left.jpg
header_right.jpg

Reecey 02-03-2008 12:14 AM

do ya want me to give it a go on your forum link me to it and make me a user make me admin and restrict my perms to styles and languages and send me the info via pm of password sit link and username and ill give it a go :D

Freesteyelz 02-03-2008 12:16 AM

Seriously, you don't need admin access to fix the issue. I can help you without it.


All times are GMT. The time now is 01:01 PM.

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.01189 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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