PDA

For continued disscussion on this topic : Style sheet not being used...



jtown
08-13-2000, 09:51 PM
My style sheet isn't being used when I execute this in my .cgi....

print "Content-type:text/html\n\n";
print <<EndHTML;

<html><head><title>$msg</title>
<LINK REL=stylesheet HREF = "styles.css" TYPE = "text/css">
</head>
<body class = "guestbook_sign" onLoad = "setTimeout('window.close();',3000); window.opener.parent.main.location.reload();">
<font class = "guestbook_sign">$msg
</body>
</html>

EndHTML

any help would be appreciated..

thanks
james

gzazJim
08-13-2000, 11:42 PM
Howdy jtown,

This may come across as an insulting and or silly question, but have you got your "HREF=" statement pointing towards the correct directory? If it's in the same directory, try giving it a full path, i.e.: HREF="http://www.sitename.com/styles.css"

'Tis just a thought... I hope it helps!

Good Luck!

Jim

jtown
08-13-2000, 11:52 PM
ok..I'll try that....the files are in the same directory so it should be ok....let me see


oh ok ok...the path was incorrect...it's calling it from the cgi-bin dir..it's up one level..thanks

james

gzazJim
08-13-2000, 11:56 PM
Jtown,

I do that all the time, that's why it was the first thing I asked!

Glad to be of assistance, and good luck!

Jim