in reply to Re^2: CGI::Application run mode does not recognize external css
in thread CGI::Application run mode does not recognize external css

Well, if you refuse to show the HTML generated for the first solution that works, and the HTML generated for the second solution that fails, then it will be quite hard to determine why the one works while the other does not.

My guess is that the URL does not work, at least http://www.mystyle.com/styles/style.css does not work for me. But feel free to try other approaches to finding out why this does not work.

Replies are listed 'Best First'.
Re^4: CGI::Application run mode does not recognize external css
by Prat824 (Acolyte) on Apr 19, 2010 at 15:13 UTC
    sorry about that.. here is the source
    <!DOCTYPE html PUBLIC"-// W3C//DTD Xhtml 1.0 Strict//EN"" http://www.w +3.org/TR/xhtml2/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <META HTTP-EQUIV="Expires" CONTENT="Tue, 04 Dec 1993 21:29:02 GMT" +> <LINK REL=StyleSheet href="file:///C:/Program Files/Apache Softwar +e Foundation/Apache2.2/cgi-bin/myapp/templates/basic.css" TYPE="text/ +css" MEDIA=screen> <title> Browse </title> </head> ... ...
    above code, when generated through run-mode does not recruit the external css, whereas if I copy this and paste it to a dummy html file, then the css works fine. Whats bothering me is why the browser treats the same html content in 2 files (one generated melodramatically, other created manually) differently? Sorry if I missed out something please let me know and I'll post. Thanks