View Full Version : Auto adjust logo width to match browser width?
thestaton
04-20-2008, 03:12 PM
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
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!
<!-- 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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.