Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Kris Byrum
Kris Byrum
32,534 Points

ie 7 and 8

So I attempted to add a style sheet specifically form ie 7 and 8, but for some reason it is not rendering the code.

I have removed the media queries on the stylesheet.

This it the html to the style sheet.

Thanks for any help

<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <link rel = "stylesheet" type="text/css" href="css/normalize.css" media="screen">
    <link href='http://fonts.googleapis.com/css?family=Josefin+Slab|Merriweather' rel='stylesheet' type='text/css'>
    <link rel = "stylesheet" type="text/css" href="css/style.css" media="screen">
    <link rel = "stylesheet" type="text/css" href="css/responsive.css" media="screen">
    <!-- [if lt IE 9]><link rel="stylesheet" href="css/styles-ie8.css" type="text/css"/><![endif]-->
    <title>Sally Showman | Award Winning Reporter</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

6 Answers

Does using

<!--[if lte IE 8]>

fair any better for you?

Kris Byrum
Kris Byrum
32,534 Points

ODD!!! It works now.

Thanks a ton Erik. I swear I though I tried this.

James Barnett
James Barnett
39,199 Points

This is slightly off topic but ...

I wouldn't worry about IE7 because it currently has less than 1% worldwide usage.

IE8 on the other hand has 8% and is quite important to support.

Kris Byrum
Kris Byrum
32,534 Points

Yeah I looked up the usage after this post an noticed how little it was being used.

I just with ie8 was at 1% too!

James Barnett
James Barnett
39,199 Points

Are those stats from your own site?

Kris Byrum
Kris Byrum
32,534 Points

What do you mean?

I was referring to the 1% usage comment you made for ie7 and just WISHED that ie8 had the same usage. Not the 8% it is now.

James Barnett
James Barnett
39,199 Points

Yeah I see what you mean, the word wish was missing in your sentence, I'm on the same page now.