php/CSS formatting
We have changed hosting providers for our php/css website.
On the new providers server the formatting for the site looks a bit odd. ie the text is not correct and the titles are not in the correct place. All of the files have been uploaded including the CSS files.
Is there anything we should look for? maybe permissions? any help would be great never mind 开发者_C百科how simple.
Thanks
I'm getting multiple CSS errors off your "migrated" site in the Firefox error console: bad selectors, bad font names, etc.. But some of these errors don't occur on the old site.
In other words, your new site isn't identical to the old one.
The big one is that your /styles/stylesheet.css
is actually a PHP file, with the raw PHP code being served up instead of CSS:
<?php
header("Content-type: text/css; charset=UTF-8");
$default = array(
'fontSize' => '75%'
);
The syntax errors are killing most of the CSS rules, which explains the differences.
Is the php version on the new server the same as on the old version?
I wouldn't expect minor differences in version to affect anything, but major differences in versions may cause unexpected behavior.
can you do a diff on the html source from the previous host and the new server. This assumes you still have access to the html on the old server.
Check all the files have been uploaded correctly (well all the css files) its possible there was an error and only a partial file was uploaded
View the HTML source and see what the referenced CSS files are. Try to load each one individually. If any fails, it means you have an access rights problem.
精彩评论