css does not work

AfterLifeMediaX

New Member
I have made a simple code to demonstrate my problem. I have two files:The first - main\[code\]<p id="red">RED</p><?phpinclude("color.php");?><style>#red {color: red};#blue {color: blue};</style>\[/code\]and the second one:\[code\]<p id="blue">BLUE</p>\[/code\]I want to change color for both paragraphs, but I do not do the same CSS code to the other .php file. Please, how can I do it? And why the code below does not work, when I included the other file there?
 
Top