On Monday 01 October 2001 05:26 am, Rajeev Rumale wrote:
> Check out the path and location.
>
> As per you current code the location of stylesheet should in the directory
> where the script is lies.
> As gernally all scripts are in cgi-bin which might have only execute
> permission.
>
>
> its better to have the style sheet into a seprate directory in website
> root(say "styles").
>
> Then you can write
> <link rel="stylesheet" href="/styles/style1.css">
>
>
> this should work perfectly.
>
> Rajeev Rumale
>
> ----- Original Message -----
> From: "Brett W. McCoy" <[EMAIL PROTECTED]>
> To: "Gary L. Armstrong" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, October 01, 2001 3:42 AM
> Subject: Re: Stylesheet line not working
>
> > On Sun, 30 Sep 2001, Gary L. Armstrong wrote:
> > > I have skimmed through the Llama and Camel and I don't know why this
>
> should
>
> > > not work:
> > >
> > > #startcode
> > > print <<BLOCK1;
> > >
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > > "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd";>
> > >
> > > <html>
> > > <head>
> > > <title>Geek Shop -- A Web Page</title>
> > > <link rel="stylesheet" href="style1.css">
> > > </head>
> > > ...blahblahblah...
> > > BLOCK1
> > > #endcode
> > >
> > > Actually the whole thing works fine (hooray, my first CGI) except that
>
> it's
>
> > > not finding my style1.css, and before I start messing around with it
> > > too much, I thought I'd find out if any of you might throw me a bone.
> >
> > Where is the style1.css file?  Going by the above code, it should be in
> > the document root of the web server, not in the cgi-bin directory.  In
> > the HTML that is output, its context is still that of the web server, not
> > the CGI script.
> >
> > -- Brett
> >                                           http://www.chapelperilous.net/
> > ------------------------------------------------------------------------
> > It's not hard to admit errors that are [only] cosmetically wrong.
> > -- J.K. Galbraith
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

I have found that some browsers do not like the style tag in the form you are 
sending they prefer

<LINK REL='stylesheet' TYPE='text/css' href='path/to/css'>

For some reason they require the TYPE attribute to be present.
-- 
Michael D. Risser
Software Engineer
=============================
Machine Vision Products, Inc.
www.visionpro.com
[EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to