![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I recently changed a .css file to .asp to insert some server side code to write different css elements based upon some data base criteria. IE and Opera appear to process the .asp file and use the adjusted css. Mozilla and Firefox ignore it completely and display the pages with no css. I couldn't find anything stating I couldn't use server side scripting to write a css file. Is there anything in the spec that prohibits it? |
#3
| |||
| |||
|
|
dp <noreplyhere (AT) hotmail (DOT) com> wrote: I recently changed a .css file to .asp to insert some server side code to write different css elements based upon some data base criteria. IE and Opera appear to process the .asp file and use the adjusted css. Mozilla and Firefox ignore it completely and display the pages with no css. The style sheet is probably being sent with an incorrect Content-Type header. See http://css.nu/faq/ciwas-aFAQ.html#QA05 |
#4
| |||
| |||
|
|
I recently changed a .css file to .asp to insert some server side code to write different css elements based upon some data base criteria. IE and Opera appear to process the .asp file and use the adjusted css. Mozilla and Firefox ignore it completely and display the pages with no css. I couldn't find anything stating I couldn't use server side scripting to write a css file. Is there anything in the spec that prohibits it? The HTML I'm using is link rel="stylesheet" type="text/css" href="css.asp" |
#5
| |||
| |||
|
|
"dp" <noreplyhere (AT) hotmail (DOT) com> wrote in message news:c0r%c.8807$ZC7.5342 (AT) newssvr19 (DOT) news.prodigy.com... I recently changed a .css file to .asp to insert some server side code to write different css elements based upon some data base criteria. IE and Opera appear to process the .asp file and use the adjusted css. Mozilla and Firefox ignore it completely and display the pages with no css. I couldn't find anything stating I couldn't use server side scripting to write a css file. Is there anything in the spec that prohibits it? The HTML I'm using is link rel="stylesheet" type="text/css" href="css.asp" On the project I'm currently working on, the style sheets are all .asp files. We set the content type in the first line of these .asp files with this code: %Response.ContentType="text/css";% That seems to work fine with Mozilla. -- bonfils |
#6
| |||
| |||
|
|
%Response.ContentType="text/css";% That seems to work fine with Mozilla. Haf to remove the semi-colon, but that did the trick. Many thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
| |