Here is how to force IE8 to load the page in IE8 mode no matter what and not load it in IE7.
1. Replace your doctype with HTML5 one
2. Add Meta tag right under your <html> tag that tells the browser to render this page in IE8 mode. Make sure it’s the first line after <html> tag