View Full Version : Can't center my header
katie hunter
01-31-2008, 11:27 PM
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
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
<!-- 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
<!-- 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
<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
Header 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:
<!-- 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.
Reecey
02-03-2008, 12:19 AM
oh and how else are you ment to do it :mad:
I'm getting sick of people moaning when i say i will help. if she restricts my permissions what the HELL can i do. im helping her out.
you know what its up to her .
Freesteyelz
02-03-2008, 12:26 AM
All I need is the header code and to see the images used (as specified in post #8). While the URL would be nice (so I can see the layout) it's not necessary.
I'm not preventing you from helping her. I'm just giving Katie another option.
snakes1100
02-03-2008, 12:26 AM
@Reecey
i think you took Freesteyelz post a little to much to heart, you dont really need admin access to help ppl, simply posting the code for them to use is sufficiant.
I was wondering why are you trying to wrap a td tag around the start of a table tag to center it and close the td tag before the end of the table tag?
katie hunter
02-03-2008, 12:28 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:
<!-- 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
I will pm you the url ;)
Reecey thanks for the help but i don't give admin permission to anyone, i am really paranoid when it comes to stuff like these, I've lost my old vb software, domain and other modification because i trusted people, No offense but i am highly paranoid when it comes to admin stuff but thanks <333
snakes1100
02-03-2008, 12:30 AM
I dont understand why you dont post your URL, seeing as its easy to find anyways.
Freesteyelz
02-03-2008, 12:32 AM
I'll post the updates here so anyone who has taken the time will know what's been done.
katie hunter
02-03-2008, 12:34 AM
I dont understand why you dont post your URL, seeing as its easy to find anyways.
Here you go http://forum.nihonomaru.com
I'll post the updates here so anyone who has taken the time will know what's been done.
I've posted the attachments pictures in this post 14
Reecey
02-03-2008, 12:45 AM
EUREEEEEKA IVE GOT IT :D
here right in your "header" template search for this :
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :
<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28
There ya go :D
katie hunter
02-03-2008, 12:51 AM
EUREEEEEKA IVE GOT IT :D
here right in your "header" template search for this :
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :
<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28
There ya go :D
It is Arika, if that is what you mean by my admin name =]
I will try it and let you know if it works.
Hmm what about this one ?
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.
This is the new banner i want to use but it doesn't fully show.
https://vborg.vbsupport.ru/external/2008/02/48.jpg
Reecey
02-03-2008, 12:57 AM
i wasn't meaning your forum name i was meaning the science term "EURIKA" it means ive sussed it :D does it work ?
EDIT: just to let you know ive changed my banner back to the left now coz i don't want it in the center rofl.
katie hunter
02-03-2008, 01:04 AM
i wasn't meaning your forum name i was meaning the science term "EURIKA" it means ive sussed it :D does it work ?
EDIT: just to let you know ive changed my banner back to the left now coz i don't want it in the center rofl.
Okay.... Thanks :)
I will test it and let you know
but
WEll all i want now is how to use a bigger banner, width wise, the default banner width is 516 but i want to use the banner i made which is 700 wide. If you just try to edit the number from 516 to 700 in the header, it will mess the header totally, it won't fix it.
Reecey
02-03-2008, 01:07 AM
it could be because of the size setting's of the style i can't really say what is the problem as i can't see it
irishelite
02-13-2008, 08:38 PM
EUREEEEEKA IVE GOT IT :D
here right in your "header" template search for this :
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
Once you've found it replace it with this :
<td align="center"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
And you will end up with the header being in the center like :
http://soundhabbo.com/forum/index.php?styleid=28
There ya go :D
I've been trying to center the header on my own website and this advise really helped. Thanks so much!! :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.