Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Hacking with Style > Hack 26. Use Respond.js to Polyfill CSS3 Media Queries ...

Hack 26. Use Respond.js to Polyfill CSS3 Media Queries in IE

Media queries are key to developing a responsive design, which can be problematic for browsers and phones that don’t yet support the feature. Respond.js was developed to fill that need. Now you can build a responsive website from which everyone can benefit.

Responsive design can be an efficient way to build websites. Instead of writing one website, one mobile website, and one tablet website, you just write one website that works well on all devices. One of the foundational tools of responsive design is CSS media queries, but unfortunately media queries don’t work in Internet Explorer versions earlier than IE 8. That’s a problem for us web standards folks. The basic principle of modern web standards is to write an application once, and have it function on all standards-based web browsers. The lack of web standards could severely hinder the adoption of HTML5 features, as functional features such as media queries would have no backward-compatible support i....


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint