Is it possible to use @import with a file extension other than .css? For example:
<style type="text/css">@import url(all_css.php);</style>
I have a style sheet that's a .php file, in which some values (body background color, text color, font size, etc.) are pulled from a MySQL database. The purpose is to create a PHP form page with which I can change those values.
When I use <LINK> to link to the file, it works, but not @import, which I'd like to use. Does it just not work or am I missing something?
Thanks for any input.



. Thanks for the explanations - very helpful and make perfect sense.

Bookmarks