Link to home
Start Free TrialLog in
Avatar of Quack
QuackFlag for United States of America

asked on

Header image aligning incorrectly in cfm file but not html version.

I can't seem to find why these two pages are showing the header areas differently. I don't see a difference w/in the code that would cause this. Both reports use the same styles and configuration for the tables and images. Only difference is one is an html file and one is a cfm. See below for screenshots and code comparison.

Showing correctly - index.html:

<cfset #date# = #DateFormat("#Now()#","mmmm dd, yyyy")#> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML LANG="EN-US">

<head>
<title>XXXXXXXX Report Query</title>

<script language="JavaScript" type="text/JavaScript">
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
</script>

<link href="../css/home.css" rel="stylesheet" type="text/css" />
<LINK rel="Home" title="Index page of FINCEN Intranet site"
      type="text/html"
      href="https://<cfoutput>#CGI.SERVER_NAME#</cfoutput>">  
</head>

<BODY >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="../images/grad2b.gif">
   <tr>
      <td width="10%">&nbsp;</td>
      <td width="80%" valign="top">
	     <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
            <tr>
               <td><a href="../../../index.htm"><img src="../images/IntranetBanner_010909.jpg" alt="XXXXXXXXXXXXXXXXX Intranet banner" width="800" height="82" border="0" ></a></td>
            </tr>
            <tr>
               <td><CF_topmenu_new></td>
            </tr>
            <tr>
               <td valign="top"><table width="100%" border="0">
                  <tr bgcolor="#FFFFFF">
                     <td valign="top"><table width="100%">
                           <tr valign="top">
                              <td width="15%"><CF_leftNav_new></td>
                              <td><table width="100%" border="0">
                                 <tr>
                                    <td valign="bottom" class="Headline18Gold">Status Detail Report Query</td>
                                 </tr>
                                 <tr>
                                       <td class="maintxt12" align="center">&nbsp;

									   </td>
                                 </tr>

                                 <tr>
                                    <td class="maintxt12"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr>
                                             <td align="center" class="maintxt12"><table width="90%" border="0" align="left" cellpadding="5" cellspacing="0">
                                                   
                                                   <tr>
                                                     <td colspan="3" class="maintxt12"><p>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 23 invoices.<br><br></p></td>
                                                   </tr>
                                                   <form name="form1" method="post" action="XXXXXXXXXRpt.cfm">
                                                   <tr>
												     <td width="32%" valign="middle" class="FormLabel12Blu">Select desired output format:</td>
                                                     <td width="13%" class="maintxt12">
                                                     <input name="type" type="radio" value="html" checked="checked"><span class="FormLabel12Blu">HTML</span></td>
                                                     <td width="55%" class="maintxt12">
                                                     <input name="type" type="radio" value="excel"><span class="FormLabel12Blu">MS Excel</span></td>
                                                   </tr>                                                         
                                                   <tr>
                                                      <td colspan="3" class="maintxt12">
                                                        <input type="submit" name="Run Report" value="Run Report">                                                      
                                                  </td>
                                                   </tr></form>  
                                             </table></td>
                                          </tr>
                                    </table></td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                              </table></td>
                       </tr>
                     </table></td>
                  </tr>
               </table></td>
            </tr>
            <tr>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td><CF_footer_new></td>
            </tr>
      </table></td>
      <td width="10%">&nbsp;</td>
   </tr>
   <tr>
      <td width="10%">&nbsp;</td>
      <td width="80%">&nbsp;</td>
      <td width="10%">&nbsp;</td>
   </tr>
   <tr>
      <td width="10%">&nbsp;</td>
      <td width="80%">&nbsp;</td>
      <td width="10%">&nbsp;</td>
   </tr>
</table>

</body>
</html>

Open in new window



Showing incorrectly - filename.cfm

[embed=file 1358227].cfm">
                                                   <tr>
												     <td width="32%" valign="middle" class="FormLabel12Blu">Select desired output format:</td>
                                                     <td width="13%" class="maintxt12">
                                                     <input name="type" type="radio" value="html" checked="checked"><span class="FormLabel12Blu">HTML</span></td>
                                                     <td width="55%" class="maintxt12">
                                                     <input name="type" type="radio" value="excel"><span class="FormLabel12Blu">MS Excel</span></td>
                                                   </tr>                                                         
                                                   <tr>
                                                      <td colspan="3" class="maintxt12">
                                                        <input type="submit" name="Run Report" value="Run Report">                                                      
                                                  </td>
                                                   </tr></form>  
                                             </table></td>
                                          </tr>
                                    </table></td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                   <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                              </table></td>
                       </tr>
                     </table></td>
                  </tr>
               </table></td>
            </tr>
            <tr>
               <td>&nbsp;</td>
            </tr>
            <tr>
               <td><CF_footer_new></td>
            </tr>
      </table></td>
      <td width="10%">&nbsp;</td>
   </tr>
   <tr>
      <td width="10%">&nbsp;</td>
      <td width="80%">&nbsp;</td>
      <td width="10%">&nbsp;</td>
   </tr>
   <tr>
      <td width="10%">&nbsp;</td>
      <td width="80%">&nbsp;</td>
      <td width="10%">&nbsp;</td>
   </tr>
</table>

</body>
</html>]

Open in new window

header_01.JPG
header_02.JPG
Avatar of Coast Line
Coast Line
Flag of Canada image

did u tried comparing the view source of both files using any comparison tool like beyond compare

try that and see
Avatar of Quack

ASKER

did a diff comparison...will try that but firewall issues may prevent that effort
ASKER CERTIFIED SOLUTION
Avatar of Quack
Quack
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial