Announcement

Collapse
No announcement yet.

Simple Header Html Issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple Header Html Issue

    I am trying to get my header's navigation buttons to align right.

    Here is the code:

    Code:
    <!-- begin fusion header-->
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
      <tr>
        <td height="191">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td colspan="9"><div align="center"><a href="index.php"><img src="/images/9thsf2.jpg" width="100%" height="150" border="0"></a></div></td>
            </tr>
            <tr> 
              <td height="38" background="http://www.9thsf.com/images/header_small_gap.gif"> 
                <div align="center"><a href="http://www.9thsf.com/forum/search.php?do=getnew">New 
                  Posts</a> | <a href="http://www.9thsf.com/up/" target="_blank">Upload 
                  Files</a> | Logout</div></td>
              <td width="45" height="38"><a href="./index.php"><img src="$stylevar[imgdir_misc]/fusion_header_home.gif" alt="" width="45" height="41" border="0" /></a></td>
              <td width="61" height="38"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_cp.gif" width="61" height="41" border="0" alt="" /></a></td>
              <td width="68" height="38"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_register.gif" width="68" height="41" border="0" alt="" /></a></td>
              <td width="68" height="38"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/fusion_header_links.gif" width="68" height="41" border="0" alt="" /></a></td>
              <td width="62" height="38"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_members.gif" width="62" height="41" border="0" alt="" /></a></td>
              <td width="68" height="38"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_calendar.gif" width="68" height="41" border="0" alt="" /></a></td>
              <td width="56"height="38"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_search.gif" width="56" height="41" border="0" alt="" /></a></td>
              <td width="47" height="38"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_faq.gif" width="47" height="41" border="0" alt="" /></a></td>
            </tr>
          </table></td>
      </tr>
    </table>
    
    
    <!-- begin main inner table area-->
    <table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#34353B">
    <tr><td>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#34353B">
      <tr>
        <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
        <td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
        <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
      </tr>
    Sometimes it works great and sometimes it does this:



    When is should look like this:



    I'm not the only one this is happening on...

    Anyone have any ideas how to fix that?

    thanks,
    Eroc

  • #2
    Hi Eroc

    Try this out:
    Code:
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr> 
      <td colspan="2"><div align="center"><a href="index.php"><img src="/images/9thsf2.jpg" width="100%" height="150" border="0"></a></div></td>
     </tr>
     <tr height="38"> 
      <td background="http://www.9thsf.com/images/header_small_gap.gif"> 
       <div align="center"><a href="http://www.9thsf.com/forum/search.php?do=getnew">New Posts</a> | <a href="http://www.9thsf.com/up/" target="_blank">Upload Files</a> | Logout</div></td>
      <td style="text-align:right"><a href="./index.php"><img src="$stylevar[imgdir_misc]/fusion_header_home.gif" alt="" width="45" height="41" border="0" /></a><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_cp.gif" width="61" height="41" border="0" alt="" /></a><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_register.gif" width="68" height="41" border="0" alt="" /></a><a href="#usercptools"><img src="$stylevar[imgdir_misc]/fusion_header_links.gif" width="68" height="41" border="0" alt="" /></a><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_members.gif" width="62" height="41" border="0" alt="" /></a><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_calendar.gif" width="68" height="41" border="0" alt="" /></a><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_search.gif" width="56" height="41" border="0" alt="" /></a><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/fusion_header_faq.gif" width="47" height="41" border="0" alt="" /></a></td>
     </tr>
    </table>
    Later
    Keith

    Webxpertz Community for Webmasters & Developers

    Comment


    • #3
      XHTML uses:

      <td style="background-image: url(images/background.gif);">
      instead of
      <td background="something.gif">

      Comment

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