Forum Bugs

Style Sheet ignored

bookdev
Could you please be so kind as to let me know if you can allow dynamic style sheets, if you don't mind?

For example, Prince gives an error "Unknown css mime type" for the following:

Prince -s http://domain.com/stylesheet.php?margin=1

It seems to only recognize style sheets with the extension "css". Therefore, one needs to create a different style sheet for every possible scenario instead of just one dynamic style sheet.
mikeday
Can you make your stylesheet.php serve up the style sheet with the correct MIME type, eg. "text/css", by setting the "Content-type" HTTP header?
bookdev
Yes, that worked perfectly. Thanks, Mike!