I have the most basic PHP code with just these 13 lines:
<!DOCTYPE html>
<html>
<head>
<link href="design/faq.css" media="display" rel="stylesheet" type="text/css" />
<script src="js/jquery.main.js" type="text/javascript"></script>
</head>
<body>
<?php
print_r( $_GET );
echo "hey";
?>
</body>
</html>
When I am opening this page as: faq.php?code=sth; The PHP code is getting executed correctly, but the CSS is not working at all(in any browser). Since I primarily use Opera, here are screenshots:
-
Parsed Page

-
Code

-
The
faq.css

What I tried
-
My first instinct was to check if the
faq.csswas accessible or not. Yes, the file has write property as 0644 same as all other files. -
Then I checked if the path was not getting parsed correctly, but that is not the case either, as I later tried it with full path too.
Trouble
I am completely stumped at such a behavior from the least troublesome of languages as CSS. What could be the problem here? The CSS file contains only these 4 lines.
body {
background-color: #DC2826;
margin-top: 0px;
}
You’re using
media="display". This is not a valid type for themediaattribute.See this link for valid types of devices (
all,aural,braille,handheld,projection,print,screen,tty,tv).