Why can a CSS sheet fail to work properly after converting a web page from HTML to PHP?

In: PHP
[Edit]

Answer

The web browser cannot tell whether the page information arriving at the browser comes from a PHP source or an HTML source. So if the HTML version works and the PHP version CSS is broken you have translated the page incorrectly.

Examine the page source from the browser window for both versions and compare them closely. The PHP version must reference the CSS file correctly in the header. Check that in particular.

Improve Answer Discuss the question "Why can a CSS sheet fail to work properly after converting a web page from HTML to PHP?" Watch Question

First answer by Craigle. Last edit by Craigle. Contributor trust: 129 [recommend contributor]. Question popularity: 11 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > PHP > Why can a CSS sheet fail to work properly after converting a web page from HTML to PHP?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
How do you apply css in html code?  How can you get different css style for Php?  Where are there some free HTML and CSS programming tutorials?  Myspace will not let you edit your page because of css codes?  Your css sheet isnt working and being picked up by your site after you convert your web page from html to php your menus are all over the place please help?