View Full Version : CSS and PHP

05-01-2013, 08:23 AM

I'm learning PHP and I've discovered the CSS stylesheet I linked to my web page doesn't apply to the PHP code in the web page. For example, I created a class called "error" with big red type and placed it in the attached stylesheet, but when I apply that class to text in the PHP code, the class is ignored. I don't understand why, but that's what it does. Any suggestions?

Many thanks,

05-01-2013, 09:26 PM
Never mind. I figured it out. I needed media="all" in the link to the stylesheet to make it work in the PHP.