Greetings all,
Make sure the path that comes through from your HTML::Template generated page is the actual path to the CSS file. Sometimes I have found the developers designing the HTML templates use document relative paths to the CSS file in order to test their design. Once this is used in the CGI scripts via HTML::Template the paths all change. I would view source on your generated page and make sure that is the path you want. If not you will have to change it in your Template file to get it to work. Try making the path root relative, so instead of something like:
<link rel="stylesheet" type="text/css" href="../css/your.css">
try
<link rel="stylesheet" type="text/css" href="/css/your.css">
That way its the servers problem of finding it and not yours.
Just a thought.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

In reply to Re: Html Template CSS and CGI PERL by injunjoel
in thread Html Template CSS and CGI PERL by ana711

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.