is there some special trick to linking a style sheet to your page when 
the page is generated by a cgi script?
I have this sub routine that prints the header of a html page:
  sub write_html_header
  {
    print "Content-type: text/html\n\n<html>\n <head>\n";
    print "  <link rel='stylesheet' href='mystyle.css' />\n";
    print "  <title>$_[0]</title>\n";
    print "</head>\n<body>\n";
  }
When I run this in a browser it displays the page normally except the 
style sheet isn't applied to the page at all.  It just shows the 
default colors.  I also tried it with the attributes "type='text/css'" 
and "media='screen'" but nothing seems to work.  I've tried it in 
Internet Explorer 6.0, Netscape 7.0, Mozilla 1.2a and Opera 6.05.  The 
stylesheet doesn't work in any browser and I've only used simple style 
attributes, like changing colors and fonts.  I don't believe there is 
anything wrong with the code I have because it works when i link to it 
from a hardcoded html page, so what happening here?

Ian Watt



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

Reply via email to