vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Auto adjust logo width to match browser width? (https://vborg.vbsupport.ru/showthread.php?t=176702)

thestaton 04-20-2008 03:12 PM

Auto adjust logo width to match browser width?
 
You can see what's going on here:

internetinjustice.com

Basically, I'm not sure how to do this? I started off by making the logo.gif to fit my screen, then soon realized on smaller windows it left overhang, causing the user to scroll to the right.

Any help would greatly be appreciated.

SEOvB 04-20-2008 05:17 PM

reduce the width of your logo, then take whatever part of the image you want to appear, set it as the background of the table and thats all there is to it basically.

.....

thestaton 04-20-2008 06:03 PM

Quote:

Originally Posted by FRDS (Post 1495280)
reduce the width of your logo, then take whatever part of the image you want to appear, set it as the background of the table and thats all there is to it basically.

and just so you know, the irony is over whelming that you run a site for internet justice, then are encouraging click fraud...http://internetinjustice.com/forums/showthread.php?t=27

Thanks for the help, where is the background for the header table usually stored? I have looked in MAIN CSS and did not find anything that looked relevant. I've also examined the included images that came with the theme and I've yet to locate one that looks like the background.

As per click fraud, that is simply just something I put up to be quick and dirty. The forum doesn't have any members other than those I have invited, so nothing fishy is taking place.

Again, thanks for the help. I've been scratching my head for some time trying to figure this logo out.

SEOvB 04-20-2008 06:50 PM

its in the header template itself, if you know a little CSS you should be able to manage adding the background image onto the table. If not, post your header code, and we'll figure out it

thestaton 04-20-2008 06:55 PM

Thanks for the help... I looked over the header template, and could not find what was being used for the back ground image.

Here's the source, and again thanks!

Quote:

<!-- logo -->
<a name="top"></a>
<div id="header"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></div>
<!-- /logo -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="305" valign="top" class="headerBottomLeft" style="padding: 0px; height: 67px"><table width="305" border="0" cellspacing="0" cellpadding="0" style="padding-left: 10px">

<tr>
<td class="nopad"><div align="left"><img src="$stylevar[imgdir_misc]/quick_search.gif" alt="" width="70" height="19" style="padding-left: 15px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;" /></div></td>
</tr>
<tr>
<td class="nopad"><form action="search.php?do=process" method="post">

<div align="left">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" maxlength="255" name="query" size="25" tabindex="1001" style="border: 1px #A5ACB2 solid; width: 126px; height: 14px; margin-left: 15px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;" onfocus="this.value=''" value="Enter words to search..." />
<input class="button" type="image" src="$stylevar[imgdir_misc]/login-button.gif" style="padding: 0px; border: 0px;" tabindex="1004" />

</div>
</form></td>

</tr>
</table></td>
<td style="padding: 0px; padding-bottom: 6px" class="headerBottomRight"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align="center">
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
<td width="15%" class="navText"><a href="$vboptions[forumhome].php$session[sessionurl_q]">Home</a></td>
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
<td width="15%" class="navText"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>

<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
<td width="15%" class="navText"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a></td>
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
<td width="15%" class="navText"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
<td width="15%" class="navText"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>

<td width="15%" class="navText"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td>
<td width="5"><img src="$stylevar[imgdir_misc]/nav_separator.gif" alt="" width="5" height="25" border="0" /></td>
</tr>
</table></td>
</tr>
</table>
<div id="wrapper">
<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

thestaton 04-22-2008 08:40 PM

bueller?


All times are GMT. The time now is 09:29 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.01031 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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