Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

how do I incorporate a separate style sheet file into a cgi script, I've read the perldoc for CGI but can't get the -style => to work in start_html() :-< Thanks

Replies are listed 'Best First'.
Re: style sheets
by Aristotle (Chancellor) on Jul 23, 2002 at 22:08 UTC
    "Can't get it to work" is not very helpful. What code have you written? What's the output you get? The docs say start_html(-style=>{src=>"style.css"}) does it, and indeed that works for me.

    Makeshifts last the longest.

Re: style sheets
by BorgCopyeditor (Friar) on Jul 23, 2002 at 20:46 UTC

    This probably isn't the kind of solution you were looking for, but what's wrong with the following?

    <link rel="stylesheet" href="style.css" type="text/css">

    It's all in your <head>.

    /me rolls his own, at least for DOCTYPE and HEAD.

    BCE
    --Your punctuation skills are insufficient!