Skip to content
A media queries polyfill
JavaScript
Find file
Latest commit 53a2695 @pyrsmk Update README.md
Failed to load latest commit information.
lib Update build system
src Bump new version
.gitignore Remove node_modules directory from repo
.npmignore Fix package metadata
Gruntfile.js Update build system
LICENSE.txt
README.md Update README.md
bower.json Fix package metadata
mediatizr.Sheethub.W.min.js Bump new version
mediatizr.Sheethub.min.js Bump new version
mediatizr.W.min.js Bump new version
mediatizr.min.js Bump new version
package.json

README.md

mediatizr 0.4.3

Mediatizr adds media queries to browsers that don't support it (like Internet Explorer 5.5-8). It's based on Sheethub and W to have a better compatibility with retrieving stylesheets and responsive events.

Install

You can pick the minified library or install it with :

jam install pyrsmk-mediatizr
bower install mediatizr
npm install pyrsmk-mediatizr

Features

  • px/em values
  • min-width/max-width
  • min-device-width/max-device-width
  • resizing, zooming and text size changing will re-evaluate media queries for live responsive adjustment
  • @keyframes friendly
  • expose current media queries support with window.supportMediaQueries

Use

Link the script at the top of your page, under your stylesheet declarations. There's several versions of mediatizr, depending on what dependency is included on. Most of the time you want to pick mediatizr.Sheethub.W.min.js.

Caveats

There's some issues between IE<8 and em values in W. If you've planned to use em units in your media queries and you want to support IE6/7, then you must load mediatizr when the DOM is ready.

Using mediatizr with STYLE stylesheets (sheets that have been included to the HTML page itself) doesn't work, because when the browser parses the STYLE node and encounters rules that it doesn't understand then it will simply drop them, and your media queries are just lost. For...ever.

License

Mediatizr is brought to you with the MIT license.

Something went wrong with that request. Please try again.