header code help

Discussion in 'vBulletin Discussions' started by kneel, Dec 2, 2009.

  1. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    can sumone take a look at this and tell me whats wrong? It keeps making my profile tabs disapeer

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="5" width="870" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td align="center">
    <a onclick="pageTracker._trackPageview ('/outgoing/_URL_http_www_tunemytoyota_com_');" href="[URL]http://www.tunemytoyota.com/"><img[/URL] src="[URL]http://www.tunemytoyota.com/forum/images/banners/bannera.jpg[/URL]" alt="" border="0" /></a>
    
    </td> 
    </tr>
    </table>
    <!-- /logo -->
    [I][COLOR=red]</br>[/COLOR][/I]
    [I][COLOR=red]<div align="center">[/COLOR][/I]
    [I][COLOR=red]<table width="988" border="0" align="center" cellpadding="0" cellspacing="0" class="border">[/COLOR][/I]
    [I][COLOR=red]<tr>[/COLOR][/I]
    [I][COLOR=red]<td align="left" valign="below">[/COLOR][/I]
    
    [I][COLOR=red]<table width="100%" border="0" cellpadding="0" cellspacing="0">[/COLOR][/I]
    [I][COLOR=red]<tr>[/COLOR][/I]
    the part that is highlighted red, If I remove that it will strech my navbar all the way accross my screen, and pushes all the nav "buttons" to the left.

    i've tried a few diff things and i cant get it right, so im askin is sumone can take a peek for me

    thanks guys!
     
  2. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Why are you trying to remove that code? The reason it's stretching is because your removing the table that is formatting the site.
     
  3. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    when that code is there it removes my profile tabs...
     
  4. Webmist

    Webmist Champion

    Joined:
    Jan 30, 2008
    Messages:
    305
    Likes Received:
    18
    Location:
    US
    First Name:
    Jen
    Your header usually defines the layout for your sight about your navigation. By default. You code shows your cutting off a table partway there. IE.. you started a row. The next template called should define that row and start with<td> for ALMOST EVERY script vb has. As the header is used in most of the calls.

    Without seeing all the templates your calling and your header template not closing a table it's kinda hard to tell you.
     
  5. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    so, i played with the code alittle bit and fixed it sumhow...but is there an open table or sumthing that im missing? I dont understand...
     
  6. Webmist

    Webmist Champion

    Joined:
    Jan 30, 2008
    Messages:
    305
    Likes Received:
    18
    Location:
    US
    First Name:
    Jen
    Pulling the page source code will tell you. Make sure all the tables rows and columns open and close where they are suppose too.

    Because vb3 is nothing but nested tables sometimes it's confusing where they are nested and if not closed properly it breaks only on certain pages. If you look at the original header you'll see if closes a table whereas your's cuts off in the middle. So the templates that follow continue that table that's in your header.
     

Share This Page