in reply to html css how to use with cgi perl
Put your CSS file in a normal directory under your docroot somewhere -- your templates directory may not be accessible to clients.
Add a link to the stylesheet in the head of your HTML template. I use something like:
<head> <title>Registration</title> <link rel="stylesheet" type="text/css" href="/css/Format.css" title="D +efault" /> </head> <body> ... body as normal ... </body>
Treat it as you would another HTML page, an image, or anything else you link to. The fact of your generating this through Perl makes no difference in anything but relative links to the CSS file.
|
|---|