开发者

differences in CSS between localhost and VPS

After move website from localhost on my private VPS I have differences in CSS

Mainly:

  • bigger font in some places
  • doesn't work align

Before VPS I had website on taked out hosting and th开发者_StackOverflow社区ere everything was ok.

On VPS I installed everything myself - apache, php, mysql, ftp server. The differences are on all browsers (FF,IE,Opera)

Server details: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny10 with Suhosin-Patch

I don't know what search... where. Why all on localhost displays correctly and on VPS differently. The same files!

Please help me :)


Use firebug. Check for 404ing of your css.

Make sure you have zoom set the same in both instances.

Other than that I don't have too many ideas...


I found what was wrong. In index file i had:

<?php   session_start();   ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

session_start() makes error and that was the reason.

After change on:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<?php   session_start();   ?>

Everything is ok.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜