I am experiencing problem with the layout of my site in IE.
I suspect the first few lines of the HTML is doing all the damage.
View source gives me this:
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 <html >
While my HomePage.ss file looks like this:
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html >
Running the page through a w3c validation gives me this info:
Byte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.
Line 1, Column 1: character "ï»¿" not allowed in prolog
So for whatever reason a BOM character is prefixed to my HTML document and I can't get rid of it.
I've tried all sorts of things including:
- adding ContentNegotiator::disable(); to _config.php
- making sure the .ss-file is saved in ANSI-encoding
- added <?xml version="1.0" encoding="utf-8"?> to the top of the .ss-file
- removing the doctype entirely
Some help would be very much appreciated at this point :-)
Best regards, Soren