That's some messy code you got there! I appreciate that it may be required under the circumstances, but generally: more code = harder to debug!
I will try and look at it in more detail later, but in the mean time;
- Validate your HTML - this is essential. You have a lot of unclosed/unopened <div>'s which could be causing you these issues. Until the HTML is valid, it's extremely difficult to pinpoint other bugs.
- Remove the XML version - this is a major cause of browser issues, as it throws (most of) them into quirks mode, resulting in unstable and inconsistent rendering.
- Code: Select all
<?xml version="1.0" encoding="utf-8"?>