Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS not linking with CGI script
#1
hi,
i am new in python cgi.I try to code cgi with python.i can not linked with css file with python script.The css file name is style.css.
my code is here :

#!/usr/bin/python3.5


print("Content-type: text/html\r\n\r\n")
print("<!doctype html>")
print("<html>")
print("<head>")
print("<title>")
print("Cgi-python")
print("</title>")
print("<link rel='stylesheet' type='text/css' href='/style.css'>")
print("</head>")
print("<body>")

print("<h1>My name is zzzzzz</h1>")

print("</body>")
print("</html>")
this is my python cgi script...

here i tell you that css file locate at the same directory where python script located.
css file contain :

*{
    padding: 0px;
    margin: 0px;
    font-size: 20px;
}

h1{
    color: blue;
}
what is the problem with my script.Why i can
Reply


Messages In This Thread
CSS not linking with CGI script - by x64 - Nov-11-2016, 01:17 PM
RE: CSS not linking with CGI script - by x64 - Nov-11-2016, 02:41 PM
RE: CSS not linking with CGI script - by snippsat - Nov-11-2016, 03:00 PM
RE: CSS not linking with CGI script - by metulburr - Nov-11-2016, 05:35 PM
RE: CSS not linking with CGI script - by nilamo - Nov-11-2016, 07:25 PM
RE: CSS not linking with CGI script - by x64 - Nov-12-2016, 06:41 AM
RE: CSS not linking with CGI script - by metulburr - Nov-12-2016, 01:51 PM
RE: CSS not linking with CGI script - by wavic - Nov-14-2016, 07:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I need litte help with linking to another website. darktitan 3 2,129 Nov-08-2019, 01:17 PM
Last Post: darktitan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020