Forums

CSS is Ignored when HTML Line Termination Varies (2 posts)

  1. increa
    Member
    Posted 6 years ago #

    My WordPress blog site generates html code including css style references. How come it only displays properly on my (localhost) computer? The style sheet is not even requested by the client browser when any computer other than my localhost reads the page (I know because I check the Apache logs). Instead, it displays the page generated from index.php as "raw non-styled" content.

    Worse yet, I logged the html source code when running on my computer and when running on another computer. I transported them both back to my computer. My browser displays one correctly, and a blank page when reading the other. Same behavior with Firefox or Konqueror.

    I ran file comparisons, two ways, using both the commandline diff and the graphical kdiff3 program. The oc program confirmed that the only difference is that my file has only <lf> at the end of each line, since it was snagged on a Linux computer, and the other one has <cr><lf> at the end since it was snagged on a Windows computer.

    Any help appreciated!

    Files available for inspection:

    blogface.axp.php - html received by my computer
    blogface.tbird.php - html received by another computer
    FilesAreDifferent.png - output from diff
    FilesAreEqual.png - output from kdiff3
    FilesAreNewLine.png - output from oc (notice byte 169)

    How can two files, that are identical except for line termination cause such different behaviors in the same browswer?! I don't even know who I should ask about a bug. WordPress? Firefox? Apache? PHP? Konqueror?

  2. moshu
    Member
    Posted 6 years ago #

    Aren't you over-complicating all this stuff???
    If you are hosting your blog... you should know that the local install pointing to "localhost" in the URIs in Options > General will make impossible for others seeing your stylesheet - because their machines will interpret "localhost" as themselves.

Topic Closed

This topic has been closed to new replies.

About this Topic