Friday, May 21, 2010

Any pages I include with php lose there style formatting in Internet Explorer. Can I fix this?

After designing my website and checking it with firefox (I know this isn't the brightest idea) I opened it in internet explorer 7 and the styles for bits of the page that where included had apparently been lost. Is this what happens with all dynamically created bits of a website? Is it all of the style that is "lost" or just certain parts that Internet Explorer doesn't handle well? Any fixes?





Thanks for all the help!

Any pages I include with php lose there style formatting in Internet Explorer. Can I fix this?
Assuming you are calling your styles inline, make sure they are quoted properly, e.g. %26lt;p class="myclass"%26gt;. Note that "myclass" is contained in double-quotes.





Ensure you provide all CSS in %26lt;style%26gt; declarations contained in the %26lt;head%26gt; tag.





Ensure you provide CSS elements that match the W3 specification http://www.w3.org/TR/CSS21/





You can validate your CSS here: http://jigsaw.w3.org/css-validator/
Reply:IE is not very standard for formatting codes, it also is not good at interpretting badly coded pages. Check your styles against the standards for IE and others. I have seen firefox cope with a missing %26lt;/a%26gt; at the end of a link, IE turned the following eight links into one link (the first). Check your code very carefully.


No comments:

Post a Comment