css in template file

Janeks Kamerovskis janeks.kamerovskis at SILVA.LV
Tue Jun 13 07:13:46 EDT 2006


It looks like you should play with those "/" and "." before file name in
stylesheet definition.

F.ex. if template and *.css are in the root directory, then line:
<link rel="stylesheet" type="text/css" href="/filename.css">
works.

Of couse there could be different combinations:
/../filename.css
/dirname/filename.css
./
etc.

Janeks 


> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Micha Silver
> Sent: Tuesday, June 13, 2006 1:24 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] css in template file
> 
> Can I use a css style sheet in a template file?
> I have a css file set up, and if I open the template (html) file
> directly, the styles are correctly applied. However when I run a map
> file from the mapserv cgi (with the template defined in the map file) I
> see my map, and all the html tags but the styles are NOT applied.
> What have I done wrong?
> Thanks,
> Micha



More information about the mapserver-users mailing list