Hi there

Scuse any netiquette errors - I'm new to mailing lists so I'm a bit shaky on
the rules.

Use an external style sheet to hold your css information then all you need
to do is add the following line to your perl code in the head tags in the
html output

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

to put this into a perl context

print <<endofhtm;
<link rel="stylesheet" type="text/css"
href="mystyle.css" />
****output of search results here****

mystyle.css is basically just a text file containing your style sheet info.
You can add the style reference to any html output to apply the same style
to any document. It also allows you to update your whole site with a new
style sheet just by editing one document.

Hope this helps


----- Original Message -----
From: "German, Douglas" <douglas.german@edl.uk.eds.com>
To: <beginners-cgi@perl.org>
Sent: Friday, June 29, 2001 2:24 PM
Subject: CSS in Perl


I'm in the process of developing an intranet which includes a site search
engine. Having downloaded Perl scripts from the internet, I am now tweaking
those scripts to fit in with the rest of the site.

I have the initial search box embedded in an ASP page which on submission
calls the Perl script in the cgi-bin. This script writes the html and
displays the results.

The ASP and HTML pages on the site use CSS, and I need to include the same
styles on the page that returns the search results, to give the site
consistency. Does anyone know of a way this can be accomplished, apart from
rewriting the entire CSS in Perl, which is beyond my capabilities?


Doug German

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbeginners @
postedJun 29, '01 at 6:25p
activeJun 29, '01 at 6:25p

1 user in discussion

Richard: 1 post



site design / logo © 2022 Grokbase