Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Almost all of bootstrap styling not working in IE8. Works fine in chrome and firefox

I'm working on a classic .asp site and am using bootstrap for styling. Everything is working fine in chrome and firefox, but almost all of the styling is missing in IE8.

I'm using bootstraps carousel and modal and none of them are looking like they should. The carousel is just rendered as a series of images and none of the back/forward buttons are working.

The modal isn't styled at all, and is just inserted on the page as a "box" with a border" (no backdrop, rounded corners or anything).

I've tried a few more of the bootstrap library styles, such as tables and buttons and nothing looks like it should. I know that the bootstrap.css gets included as some of the styling works (e.g button colors). The bootstrap js works fine.

Is there anything additionally that I need to add to my html docs (doc types or what not) to make bootstrap work as it should in IE?

I'm using bootstrap v2.2.2

Thanks in advance!

like image 378
asprotte Avatar asked Dec 30 '12 17:12

asprotte


People also ask

Why Bootstrap is not working in my browser?

These are the possible reasons: You have a wrong or incorrect link to the bootstrap file. browser caching and history is messing with your html. Other CSS files are overriding the bootstrap file.

Is Bootstrap compatible with all browsers?

Bootstrap supports the latest, stable releases of all major browsers and platforms. On Windows, we support Internet Explorer 10-11 / Microsoft Edge. Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API, are not explicitly supported.

Which version of Bootstrap does not support ie9 and down?

Bootstrap 4 is a newer version of Bootstrap; with new components, faster stylesheet and more responsiveness. However, Internet Explorer 9 and down is not supported.

Does Bootstrap work in ie11?

Bootstrap 5 drops support for Internet Explorer 11, but you can add support back by simply adding a CSS file and a few JavaScript polyfills.


2 Answers

There's some HTML5 shim excerpt (see below) necessary to support the HTML5 doctype in IE8 and lower. Did you check if it's still in the pages you built?

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
 <!--[if lt IE 9]>
     <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
 <![endif]-->
like image 151
Sidney Gijzen Avatar answered Nov 03 '22 09:11

Sidney Gijzen


Ok, so I figured it out. Wow this is really stupid. Apparently I was running IE in quirks mode.. This is what happens when you let a mac guy mess around in windows. Anyway, thanks for the feedback.

like image 23
asprotte Avatar answered Nov 03 '22 11:11

asprotte