Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2007, 05:03 PM
Factory Ten Factory Ten is offline
 
Join Date: Oct 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't Get Header to Line Up with Body

I'm having issues with getting my header to line up with the rest of my forums. I've attached an image of the upper-right corner. I'm trying to get the header to align with the body of the forums, but I'm not having much luck. This is happening on both the right and left sides of the header.

My header template looks like this:

PHP Code:
<!-- logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
        <
td>
              <
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
              <
tr>
                      <
td align="$stylevar[left]style="background-image:url($stylevar[imgdir_misc]/top_x.gif)"><img src="$stylevar[imgdir_misc]/top_left.gif" align="$stylevar[left]alt="" /></td>
                      <
td align="$stylevar[right]style="background-image:url($stylevar[imgdir_misc]/top_x.gif)"><img src="$stylevar[imgdir_misc]/top_right.gif" align="$stylevar[right]alt="" /></td>
              </
tr>
              <
tr>
                  <
td align="$stylevar[left]style="background-image:url($stylevar[imgdir_misc]/purple/f10gradient.jpg)"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td>
                  <
td align="$stylevar[right]style="background-image:url($stylevar[imgdir_misc]/purple/f10gradient.jpg)">
                      &
nbsp;
                  </
td>
              </
tr>
              <
tr>
                      <
td align="$stylevar[left]style="background-image:url($stylevar[imgdir_misc]/nav_x.gif)" height="22"><img src="$stylevar[imgdir_misc]/nav_left.gif" align="$stylevar[left]alt="" />
                          <
table border="0" cellpadding="0" cellspacing="0" align="left">
                                 <
tr>
                                     <
td><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/link_forum.gif" border="0" alt="" /></a></td>
                                     <
td><if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/link_usercp.gif" border="0" alt="" /></a></if></td>
                                     <
td id="usercptools"><if condition="$show['member']"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/link_quick.gif" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("usercptools" ,1); </script></if></td>
                                     <
td><if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]rel="nofollow"><img src="$stylevar[imgdir_misc]/link_register.gif" border="0" /></a></if></td>
                                     <
td><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/link_members.gif" border="0" alt="" /></a></td>
                                     <
td id="navbar_search"><a href="$show[nojs_link]#navbar_search"><img src="$stylevar[imgdir_misc]/link_search.gif" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("navbar_search" ,1); </script></td>
                                     <
td><if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]onclick="return log_out()"><img src="$stylevar[imgdir_misc]/link_logout.gif" border="0" alt="" /></a></if></td>
                                     <
td><img src="$stylevar[imgdir_misc]/link_rs.gif" border="0" alt="" /></td>
                                 </
tr>
                          </
table>
                      </
td>
                      <
td align="$stylevar[right]style="background-image:url($stylevar[imgdir_misc]/nav_x.gif)"><img src="$stylevar[imgdir_misc]/nav_right.gif" align="$stylevar[right]alt="" /></td>
              </
tr>
              <
tr>
                      <
td colspan="2">
                          <
table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#1B1B1B">
                            <
tr>
                              <
td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/upper_left.gif" width="12" height="11" alt="" /></td>
                              <
td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/upper_middle.gif" width="100%" height="11" alt="" /></td>
                              <
td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/upper_right.gif" width="12" height="11" alt="" /></td>
                            </
tr>
                            <
tr>
                              <
td width="12" align="left" valign="top" style="background-image:url($stylevar[imgdir_misc]/left_middle.gif)" height="100%"><img src="$stylevar[imgdir_misc]/left_middle.gif" width="12" height="100%" alt="" /></td>
                              <
td>

<!-- 
content table --> 
Anyone know what I should be looking at to fix this?
Attached Images
File Type: png Picture 1.png (4.9 KB, 0 views)
Reply With Quote
  #2  
Old 09-15-2007, 06:15 PM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's funny you should mention this but I am fighting the exact same problem using almost the exact same code you are at:

http://www.michigan-sportsman.com/fo...splay.php?f=60
Reply With Quote
  #3  
Old 09-16-2007, 12:18 AM
pitzerwm pitzerwm is offline
 
Join Date: Aug 2007
Location: WA state
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know if this will help you, but this is what I did. forum.autocareforum.com

Now the funny thing is that the same code is used in the footer, and works correct.

Someplace I read that you make a table with 3 colums in it, placing a background & images in each, but in the middle one, just put in the background, a 1px image, and say repeat. It will fill up the column to adjust to the size of the browser screen.

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="95%" align="center" background="/images/blue_black-10x120.jpg">

<tr>
<td align="left"><img src="images/transparent.gif" width="1" height="1" /><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" border="0" >
<iframe width="620" height="100" frameborder="0" scrolling="no" target="_top" align="right" src="http://www.autocareforum.com/cgi-bin/banner_grp?214,130" />

</iframe>
</td>
</tr>
</table>
Reply With Quote
  #4  
Old 09-16-2007, 12:37 AM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think there must be a more straight forward way....

This is really frustrating. I can't see why my header as coded:

Code:
<!-- logo -->
<a name="top"></a>


        <table width="$stylevar[outertablewidth]" height="300" border="0" cellpadding="0" cellspacing="0">
 
	<tr>
		<td>
			<img src="http://www.michigan-sportsman.com/images/fall_slice1.jpg" alt="" width="400" height="301" border="0" usemap="#Header_Map">
                        <map name="Header_Map">
                          <area shape="rect" alt="MI Weather" coords="62,195,209,220" href="http://www.michigan-sportsman.com/weather.htm">
                          <area shape="rect" alt="MS.com Stuff" coords="63,173,190,194" href="http://www.michigan-sportsman.com/apparel.htm">
                          <area shape="rect" alt="Hunting Articles" coords="63,154,205,172" href="http://www.michigan-sportsman.com/hunting_articles/hunting_library.htm">
                          <area shape="rect" alt="Fly Patterns" coords="64,131,183,151" href="http://www.michigan-sportsman.com/fly_pictures/bettymcnault.htm">
                          <area shape="rect" alt="Fishing Articles" coords="63,108,203,128" href="http://www.michigan-sportsman.com/fishing_articles/fish_library.htm">
                          <area shape="rect" alt="Home" coords="63,86,143,106" href="http://www.michigan-sportsman.com/">
                        </map>
                </td>
		<td background="http://www.michigan-sportsman.com/images/fall_slice2.jpg" width="100%" height="301" alt="" align="right" style="background-repeat: no-repeat;">
		  <table width="100% border="0">
                    <tr>
                      <td colspan="2">
                       <div align="right">

<SCRIPT LANGUAGE="JavaScript">
random = parseInt(Math.random()*1000)
banner = '<IFRAME src="http://www.michigan-sportsman.com/cgi-bin/adsbanner.pl?iframe; allowTransparency="true" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=NO WIDTH=470 HEIGHT=90>'
banner += '<A HREF="http://www.michigan-sportsman.com/cgi-bin/adsbanner.pl?banner=NonSSI;zone=banner;'
banner += 'page=' + random + '" TARGET="_blank">';
banner += '<IMG SRC="http://www.michigan-sportsman.com/cgi-bin/adsbanner.pl?'
banner += 'page=' + random + '"'
banner += ' ALT="Click Here!" BORDER=0></A>'
banner += '</IFRAME>'
document.write(banner)
</SCRIPT>

                       </div>		
		     </td>
                    </tr>
                    <tr>
                      <td>
                       <div align="right">
                           <br><a href="http://www.michigan-sportsman.com/sponsors.htm"><b>View our sponsors</b></a><br> 
                            <a href="http://www.igreatlakes.com/ads.htm">Be a sponsor</a>
                       </div>
                      </td>
                      <td>
                       <div align="right">
                       	
<SCRIPT LANGUAGE="JavaScript">
banner = '<IFRAME src="http://www.michigan-sportsman.com/cgi-bin/adsbutton.pl?iframe;" allowTransparency="true" STYLE="background-color: #F0F4D8" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=NO bgcolor="#F0F4D8" WIDTH=125 HEIGHT=170>'
banner += '<A HREF="http://www.michigan-sportsman.com/cgi-bin/adsbutton.pl?banner=NonSSI;zone=button;' 
banner += 'page=' + random + '" TARGET="_blank">'; 
banner += '<IMG SRC="http://www.michigan-sportsman.com/cgi-bin/adsbutton.pl?'
banner += 'page=' + random + '"' 
banner += ' ALT="Click Here!"  BORDER=0></A>' 
banner += '</IFRAME>'
document.write(banner)
</SCRIPT>    

                       </div>
                     </td>
                    </tr>

      </table></td>
   </tr>

</table>


<!-- /logo -->
Should be any wider than the forums table.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:14 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.03671 seconds
  • Memory Usage 2,299KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete