in reply to Re: CSS will not work
in thread CSS will not work
use CGI qw/Link/; my $q = new CGI; print $q->header(), $q->start_html({ -title => 'title of my page', -head => Link({-rel=>'stylesheet', -type=>'text/css', -href=>'/fo +o.css'}), });
I sorta like this, because it reminds me just what exactly I'm asking the script to emit.
update: I typed the above code in from memory, and in the original incarnation, I wrote -href=>'foo.css'. I checked some production scripts, and what I do In Real Life is -href=>'/foo.css'. This is not a relative reference (correct me if I am wrong), in that I am not using -href=>'../foo.css' -- I guess you could say it's absolute on the current server.
I was taking issue with the explicit http://... I don't believe that that is necessary, and it makes it a smidgin easier to transfer the script from one host to another.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:x2 CSS will not work
by Trimbach (Curate) on Aug 07, 2001 at 03:10 UTC |