Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF and Netscape

Status
Not open for further replies.

calista

Programmer
Joined
Jan 24, 2001
Messages
545
Location
US
I have a problem getting my template to render correctly in Netscape. Here is the situation: My header and footer are done in Application.cfm and OnRequestEnd.cfm respectively. Shown below is my basic page template:
Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<HTML>
<HEAD>
	<TITLE>Test Template</TITLE>
	<!--- Put style sheets here. --->
	<LINK REL=&quot;STYLESHEET&quot; TYPE=&quot;text/css&quot; HREF=&quot;CommonFiles/StyleSheets/TableStyle.css&quot;>
	<LINK REL=&quot;STYLESHEET&quot; TYPE=&quot;text/css&quot; HREF=&quot;CommonFiles/StyleSheets/TLGD_Style.css&quot;>
</HEAD>
<BODY>

<CFOUTPUT>
<TABLE>
<TR>
	<!--- CFINCLUDE MenuTable here. --->
    <TD><CFINCLUDE TEMPLATE=&quot;CommonFiles/MenuTable.cfm&quot;></TD>
	</CFOUTPUT>
    <TD CLASS=&quot;MainPage&quot;>	
<!--- ************************************************************************* --->
<!--- ******************** Insert main page info here. ************************ --->
<!--- ************************************************************************* --->

<!--- ************************************************************************* --->
<!--- ******************** End of Main Page info. ***************************** --->
<!--- ************************************************************************* --->
	</TD>
</TR>
</TABLE>

</BODY>
</HTML>
This looks fine in IE, but in Netscape, the MenuTable is shifted all the way to the top of the screen, overlaying part of the header. But, if I start with a blank page in a different directory, and paste in the actual code for the header and footer (bypassing Application.cfm and OnRequestEnd.cfm), it works OK in Netscape. In addition, in my Class=Menu, I have the attribute &quot;position:fixed;&quot;. If I remove that attribute, it works in NS, but, if I don't use that attribute, and the diplay has more lines than the menu, the menu gets shifted down, remaining centered between the header and footer. Calista :-X
Jedi Knight,
Champion of the Force
 
Duh! Never mind, I just answered my own question.

<TABLE>
<TR>
<!--- CFINCLUDE MenuTable here. --->
<TD VALIGN=&quot;top&quot;><CFINCLUDE TEMPLATE=&quot;CommonFiles/MenuTable.cfm&quot;></TD>
</CFOUTPUT>
<TD CLASS=&quot;MainPage&quot;>

I think I need to go home! Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top