View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
Just like images, stylesheets, if linked to the document via the <LINK> tag must be stored in the Web tree and referred to using absolute paths (starting with a slash character).  If for example you copy the file mystyle.css in the stylesheets subdirectory of your Web root, you can refer to it with:
<LINK rel="stylesheet" type="text/css" href="/stylesheets/mystyle.css">
If the file is simply copied to your Web root directory then all you need is a leading slash before the file name:
<LINK rel="stylesheet" type="text/css" href="/mystyle.css">

FoxWeb Support Team email

Sent by Don Dascher on 12/08/2002 08:32:13 AM:
I am investigating the use of a style sheet within some HTML I generate within a FWX file.  Seems simple but for some reason I am not getting an effect.   I am using a commercially created style sheet where there is clearly a definition of the <H1> tag which should result in the text being centered but it does not center it.
The CSS file is in the same directory as this FWX file.
This is my FWX code below ...
Any idea why this might not work ?
<LINK rel="stylesheet" type="text/css" href="mystyle.css">

<FORM ACTION="cats.fwx" method="POST">
<H1>E X P E N S E - C A T E G O R I E S</H1><p>
etc ...