What is the correct way to apply css on php echo?

You’re sending the header:

Content-type: text/plain;

which tells the browser that the incoming data is plain text, and not html so any markup in the returned data is ignored.

Leave a Comment