Skip to content

Commit

Permalink
Merge pull request simonwhitaker#38 from hugovk/CDN-cond
Browse files Browse the repository at this point in the history
Put IE9 CDN CSS in conditional
  • Loading branch information
simonwhitaker committed Mar 24, 2015
2 parents 6f962d9 + 4d25368 commit 2c6ab76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ in CSS, hence resolution-independent.
CDN provided by [cdnjs](https://cdnjs.com/libraries/github-fork-ribbon-css)
```
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" />
<![endif]-->
```

See 'em in action! <http:https://simonwhitaker.github.io/github-fork-ribbon-css/>
Expand Down
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Fork me on Github CSS Ribbon</title>
<title>Fork me on GitHub CSS Ribbon</title>
<link rel="stylesheet" href="//oss.maxcdn.com/libs/normalize-css/3.0.0/normalize.min.css">
<style>
/* This is just the styling for this page. See below for the CSS for the ribbon itself. */
Expand Down Expand Up @@ -104,7 +104,9 @@ <h2>Using with cdnjs</h2>
</p>
<code>
&lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css" /&gt;<br/>
&lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" /&gt;
&lt;!--[if lt IE 9]&gt;<br/>
&nbsp;&nbsp;&lt;link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" /&gt;<br/>
&lt;![endif]--&gt;
</code>

<h2>About</h2>
Expand Down

0 comments on commit 2c6ab76

Please sign in to comment.