From the course: Creating a Responsive Web Experience

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Altering the CSS and JavaScript for Internet Explorer 7 and 8

Altering the CSS and JavaScript for Internet Explorer 7 and 8

From the course: Creating a Responsive Web Experience

Altering the CSS and JavaScript for Internet Explorer 7 and 8

Now, to add some backwards compatibility for IE 7 and 8. We're going to need to make some modifications to our CSS, and our JavaScript. So, first, let's switch back to our exercise files. Now, inside of folder two, inside of this CSS folder, we have an IE 7 and 8 CSS file. Let's grab a copy of this, and let's drag it into our CSS folder in the My Website on the desktop. And once this file is copied, let's switch back to our text editor. Let's move over to the index.html file. Now in here, in the previous course, we added an IE conditional statement, that checks to see whether or not the version of IE is less than IE 9. If it is, this is where we bring in the Google HTML5Shiv. So, what we're going to do here, before we bring in the shiv, we're going to add two more files. First, we're going to add a reference to our CSS. And then, we're going to add a reference to respond.js. So first, let's start with a link. We'll set the relationship equal to stylesheet. We're going to set the type…

Contents