View Full Version : Navbar color?
UncoderMom
06-14-2006, 11:18 PM
When I add new code to navbar on my site it breaks the background color on some of my templates!
Also, how do I center a logo in header? currently its =left
my broken navbar.. thanks!
Ntfu2
06-15-2006, 04:38 AM
change =left to =center :) try that
remove the class="vbmenu_control" when you are doing the template edit
example
<td class="vbmenu_control"><a href="arcade.php">Arcade</a></td>
should be
<td><a href="arcade.php">Arcade</a></td>
you'll have to change that on any theme the <td class="vbmenu_control"><a href="arcade.php">Arcade</a></td> doesnt work on ;)
UncoderMom
06-15-2006, 04:21 PM
Thank you!! Fixed my broken templates in a jiffy!! I cant believe I didnt ask sooner!
now for my header logo issue, lol. I actually dont have a =left her is my 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]">
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
what do I cange to make the logo center?
Nevermind. I played witht he code and figured it outI changed it to...
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center">
<a href="$vboptions[forumhome].php?$session[sessionurl]">
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></tr></table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
but now I would like to add a left and right image that reapeats so that the image stretches :)
SaintDog
06-15-2006, 05:38 PM
You can use CSS for the background. Something such as:
style="background: #FFFFFF url("./path/to/image.gif");"
Simply add that to the TD cell you wish to have the image repeat and swicth out the background image for the other TD.
UncoderMom
06-16-2006, 12:12 AM
That is some useful info! but I dont know if thats what I need for logo streaching..take a sliver ov the logo end pieces then name them something like Logo_left and Logo_right then repeat I dont know templating very well only lagistics. I assume it will be some kind of
<img src="path/to/logo_right.gif" border="0" repeat-y;
that is a very ruff guess lol, but it should also be =right and vis versa for the left logo image then the meet up with the center logo image.....Im I making any sence lol
I think Im gonna add a few backgrounds to some of my styles now though lol
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.