Header HTML Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blue Moose Aaron
    Senior Member
    • Oct 2002
    • 108
    • 3.0.7

    Header HTML Question

    Can someone look at my header template and see if they can figure out why part of my header isn't working right with Netscape 7?

    http://www.thekryptonian.com/forum.php?s=&styleid=15

    Code:
    <table border="0" cellpadding="1" bgcolor="<bordercolor>" cellspacing="0" align="center">
      <tr>
    	<td width="$stylevar[outertablewidth]">
    <a name="top"></a>
    <table border="0" cellpadding="0" cellspacing="0" width="$stylevar[outertablewidth]" bgcolor="#003366">
    		<tr>
    		  <td width="$stylevar[outertablewidth]" height="12">
    		  <table border="0" cellpadding="0" cellspacing="0" width="$stylevar[outertablewidth]">
    			<tr>
    			  <td width="$stylevar[outertablewidth]" bgcolor="#666666" background="images/tiles/grey_top.jpg" colspan="2">
    			  <img border="0" src="images/tiles/grey_top.jpg" width="1" height="12"></td>
    			</tr>
    			<tr>
    			  <td width="$stylevar[outertablewidth]" bgcolor="#CF9C31" colspan="2">
    			  <img border="0" src="images/tiles/yellow_top.jpg" width="1" height="3"></td>
    			</tr>
    			<tr>
    			  <td width="$stylevar[outertablewidth]" colspan="2" height="88">
    			  <a href="forum.php">
    			  <img border="0" src="images/logo_a.jpg" width="$stylevar[outertablewidth]" height="88"></a></td>
    			</tr>
    			<tr>
    			  <td width="220" valign="top"><a href="forum.php">
    			  <img border="0" src="images/logo_b.jpg" height="38" width="220"></a></td>
    			  <td width="560" background="images/logo_c.jpg" valign="top">
    			  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    				<tr>
    				  <td width="555">
    				  <img border="0" src="images/blank7px.gif" width="1" height="7"></td>
    				  <td width="5">
    				  <img border="0" src="images/blank7px.gif" width="1" height="7"></td>
    				</tr>
    				<tr>
    				  <td width="555" id="black" valign="top">
    				  <p align="right"><b><font size="1" color="<bordercolor>">
      <if condition="$show['registerbutton']">
       <a href="register.php?$session[sessionurl]">$vbphrase[register]</a> | 
      </if> 
    				  <if condition="$show['member']">
    	<a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a> | 
    	</if> 
    				  <a href="rules.php">Rules</a> | 
    				  <a href="memberlist.php">Members</a> | 
    				  <a href="calender.php">Calender</a> | 
       <if condition="$show['searchbuttons']">	
    	<span id="navbar_search"><a href="search.php?$session[sessionurl]">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></span> | 
       
       <span id="usercptools"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></span> |   
      </if>
    				  <a href="sendmessage.php">Contact</a>
      <if condition="$bbuserinfo['userid']">
    	| <span><a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a></span>
      </if>
    </font></b></td>
    				  <td width="5">
    				  
    				  <img border="0" src="images/blank_5px_w.gif" width="5" height="1"></td>
    				</tr>
    			  </table>
    			  </td>
    			</tr>
    		  </table>
    <!-- /logo -->
     
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Netscape probably has some issues with rendering tables, just like it has always had.
    At first glance I don't find a broken tag or anything like that.

    Comment

    • Mirical Bernd
      Senior Member
      • Mar 2002
      • 397
      • 3.6.x

      #3
      Try this one:

      Code:
      <table border="0" cellpadding="1" bgcolor="<bordercolor>" cellspacing="0" align="center">
         <tr>
       	<td width="$stylevar[outertablewidth]">
       <a name="top"></a>
       <table border="0" cellpadding="0" cellspacing="0" width="$stylevar[outertablewidth]" bgcolor="#003366">
       		<tr>
       		  <td width="$stylevar[outertablewidth]" height="12">
       		  
       		  
       		  <table border="0" cellpadding="0" cellspacing="0" width="$stylevar[outertablewidth]">
       			<tr>
       			  <td width="$stylevar[outertablewidth]" bgcolor="#666666" background="images/tiles/grey_top.jpg" colspan="2">
       			  <img border="0" src="images/tiles/grey_top.jpg" width="1" height="12"></td>
       			</tr>
       			<tr>
       			  <td width="$stylevar[outertablewidth]" bgcolor="#CF9C31" colspan="2">
       			  <img border="0" src="images/tiles/yellow_top.jpg" width="1" height="3"></td>
       			</tr>
       			<tr>
       			  <td width="$stylevar[outertablewidth]" colspan="2" height="88">
       			  <a href="forum.php">
       			  <img border="0" src="images/logo_a.jpg" width="$stylevar[outertablewidth]" height="88"></a></td>
       			</tr>
       			<tr>
       			  <td width="220" valign="top"><a href="forum.php">
       			  <img border="0" src="images/logo_b.jpg" height="38" width="220"></a></td>
       			  <td width="560" background="images/logo_c.jpg" valign="top">
       			  
       			  
       			  <table border="0" cellpadding="0" cellspacing="0" width="100%">
       				<tr>
       				  <td width="555">
       		    	  <img border="0" src="images/blank7px.gif" width="1" height="7"></td>
       				  <td width="5">
       		    	  <img border="0" src="images/blank7px.gif" width="1" height="7"></td>
       				</tr>
       				<tr>
       		    	  <td width="555" id="black" valign="top">
       		    	  <p align="right"><b><font size="1" color="<bordercolor>">
         <if condition="$show['registerbutton']">
          <a href="register.php?$session[sessionurl]">$vbphrase[register]</a> | 
         </if> 
       				  <if condition="$show['member']">
       	<a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a> | 
       	</if> 
       				  <a href="rules.php">Rules</a> | 
       		    	  <a href="memberlist.php">Members</a> | 
       		    	  <a href="calender.php">Calender</a> | 
          <if condition="$show['searchbuttons']">	
       	<span id="navbar_search"><a href="search.php?$session[sessionurl]">Search</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></span> | 
          
          <span id="usercptools"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></span> |   
         </if>
       		    	  <a href="sendmessage.php">Contact</a>
         <if condition="$bbuserinfo['userid']">
       	| <span><a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a></span>
         </if>
       </font></b></td>
       				  <td width="5">
       				  
       		    	  <img border="0" src="images/blank_5px_w.gif" width="5" height="1"></td>
       				</tr>
       			  </table>
       			  
       			  </td>
       			  </tr>
       		  </table>
       			  </td>
       			</tr>
       		  </table>
       			  </td>
       			</tr>
       		  </table>
       <!-- /logo -->
        
       <!-- content table -->
       $spacer_open
       $_phpinclude_output
      Two tables where not closed.

      Netscape doesn't have rendering issues @floris: If you code the right way and W3C-compatible - and close all tags - it works very fine, better than MSIE.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...