Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery IE has gone so screwed up [closed]

I have been doing this website with a booking system, I am on a mac so i generally used Safari or Firefox... It's been coming along nicely until I chose to check it with IE.

It totally screws up the page and I haven't a clue where to start: http://offline.raileisure.com/

Fill in the booking system on the right hand side in multiple browsers and see what the difference is... IE just doesn't like it at all.

Thanks!

like image 846
Lee Avatar asked Jul 12 '11 13:07

Lee


1 Answers

Your page is running in quirks mode in IE.

To prevent Quirks mode, you must add a doctype to your document. I recommend using the HTML5 doctype. Add the following to the top of your code, above your <html> tag:

<!DOCTYPE html>

Problem solved.

Quirks mode is an obsolete rendering mode that IE supports for backward compatibility with IE5.5. It really isn't necessary for any page to support it any more, so it is recommended for all sites to have a valid doctype.

You could use any of the ones listed on this page (although if your site isn't xhtml, which I don't think it is, I'd avoid the xhtml strict and transitional doctypes).

like image 196
Spudley Avatar answered Oct 20 '22 05:10

Spudley