The CSS file is a static file, so just like images and HTML pages, it must be located in the Web tree -- not the FoxWeb Program tree. You should also use absolute URLs (URLs that start with a slash) to point to such files. For details please refer to the
Locating and Addressing Scripts chapter of the FoxWeb documentation.
FoxWeb Support Team support@foxweb.com email |
Sent by Gary Wood on 09/27/2002 01:06:48 PM:
I cannot get the HREF linked CSS to display in either Netscape 6.2 or IE 5.5??
The main .PRG program calls the .MRG HTML filelike:
html_out = MergeTxt(ReadFile('main_menu.mrg'))
The merge HTML file is:
Content-type: text/html
<HTML>
<HEAD>
<TITLE>Gary's Timecard Main Menu</TITLE>
<LINK REL=stylesheet HREF="style.css" TYPE="text/css">
</HEAD>
<body bgcolor="#cccccc">
<h1>Time Card Menu</h1>
<p>Employee: <<eename>><br>
<p>Company: <<Company>>
</BODY>
</HTML>
The CSS file is located in the same directory as the .PRG and .MRG files as contains the following:
H1 { color: green; background: gray; font-size: 37px; font-family: arial }
P { color: yellow; background: gray; font-family: arial }
I get the following error message:
Content-type: text/html
Error in line 1: Unrecognized command verb.
What am I missing?
thx...........Gary