Hi guys, I appreciate this is my first post - I am somewhat of a novice at the moment so I apologize for my flaws in advance.
I have created a website that works perfectly in the latest browsers e.g; Chrome, Firefox, IE10, Safari.
However when I run the site in earlier versions of IE, the footer looses all of its styling (css). I am completely lost as to where to begin to try and fix the problem.
HTML Code:
<footer>
<foottxt><p><a href="#top" class="scroll" title="Top of page">Back to top</a></p> <hr>
That is a snapshot of some relevant CSS, if you want to know anything else I can add more.
Any help would be much appreciated as I have no clue right now,
Cheers,
B
01-29-2012, 07:51 AM
Trips Left
I've never seen the <foottxt> tag before, but it looks as though you're using HTML5 tags. Earlier browser versions of IE are sketchy on their support. Are you using an HTML5 shiv in your source to tell the new tags how to behave if an earlier browser is being used?
01-29-2012, 10:11 AM
ibixxon
Dats html_5 code and its nt supported in older browsers.
If you are using float in ur layout,
Remove the footer tag, enclose the footer code in a div tag and give it an id; "footer" and add a clear float property
Follow the instructions at http://css-tricks.com/snippets/javas...ork-in-old-ie/ and it should work. In prior versions of IE you could not style unknown elements. As these versions don't support HTML5 elements (they came out before they existed for the most part) they are treated as unknown. The shim adds JavaScript to get IE to allow them to be styled.
You do have some genuinely unknown elements in there that are not part of HTML5. You should probably replace them with a more suitable element.