in reply to Why does my CGI website look different on a webserver?

Take a look at the page sources from the local and the remote server. That may give you a clue as to what the differences are and how to minimize them. In particular, pay attention to the first line, specifying the DOCTYPE. This was the culprit when I experienced the same problem as you.