Forum Moderators: open

Message Too Old, No Replies

Local File vs Server Rendered

A difference?

         

BlobFisk

4:51 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is something that I personally have never seen before. A copy of my file locally and then the file being sent out by the server (with the database entries put in) render differently.

I check the source (rendered from the server and the local file - flat HTML) of both and do a diff and they are identical (whitespace differences here and there). Same CSS etc.

On the server version there are differences in the spacing around some inputs. The server I'm looking at is Apache running on a MAC OSX.... Anyone seen this before?

coopersita

7:27 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



In some browsers white space (even line breaks) can cause extra space where you don't want it.

encyclo

7:28 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



White space can make a difference when dealing with table cells and such, but it shouldn't be too critical in other areas. Is the layout difference cross-browser? Are the mime types set up correctly for the CSS files? What specific rendering differences are you getting?

Robin_reala

10:33 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE can have problems with whitesapce between elements, most notably with list elements I've found...

BlobFisk

8:12 am on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

Apologies, I didn't explain well enough! I don't believe it's a whitespace issue (that bane of IE), as viewing the server rendered source locally does not show the same problems. That is, viewing the incorrectly rendered page from the server taking the source and saving it locally and the page looks perfect!

Robin_reala

12:25 pm on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you've got the exact same file rendering differently then the problem must be located in the HTTP header right?

BlobFisk

12:57 pm on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's what I'm thinking. I'm going to have a look at the header and the MIME type... Thanks for all the suggestions!

BlobFisk

2:59 pm on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok - found the source of the issue... A phenomonal lapse on my part! A mismatch on a CSS file being called....

*sigh*