Results 1 to 3 of 3

Thread: IE9 and PHP with CSS header

  1. #1
    Join Date
    May 2006

    Angry IE9 and PHP with CSS header


    header("Content-type: text/css");


    I am adding dymanic php within a css file to allow the user to change on the fly, IE9 won't render the css and omits its completely because of the header, anyone else having this issue? If I add dynamic php code to js file it includes the js file with no issues, did Microsoft implement some new security measure with css rendering?

  2. #2
    Join Date
    Nov 2008
    Atlanta, GA
    Does it work in FF? IE9 shouldn't know the difference of whether or not it is php generating text/css content or actual text/css content.

    If characters and/or white-space are being output before the content-type headers are sent it will not work, but it will not work in other browsers either.

  3. #3
    Join Date
    Dec 2005
    Using IE9's developer features (push F12) track the header requests from your page - Click "Network" then "Start Capturing" then refresh your page and see where, if anywhere, the request to your CSS file is.

    Do the same with Firebug in firefox so you can compare the headers....

    Also, do you have a link?
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles