Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobvanluijt/rem-to-px
https://github.com/bobvanluijt/rem-to-px
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bobvanluijt/rem-to-px
- Owner: bobvanluijt
- Created: 2014-10-21T13:23:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-21T14:59:24.000Z (about 10 years ago)
- Last Synced: 2024-10-08T18:41:40.666Z (28 days ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Rem to Px
With this code, you can update any stylesheet that is based on REMs to be used in < IE9
Background: one of my clients wants to use Foundation 5.x but also on IE8. By extending the REMs to pixels, the problem was solved from a CSS pov.
## Table of contents
- [Usage](#Usage)
- [Info](#Info)
- [Credits](#Credits)## Usage
You can use it in 2 ways:
1) Download the .zip and install it on your server
2) Directly send your CSS file to my server and have it rendered: http://kubrickolo.gy/rem_and_px
Example:
http://kubrickolo.gy/rem_and_px/?u=https://someurl.com/style.cssIf you want to you can add the param `uval` this will skip the search for the font-size value used to determine REM
Example 1:
http://kubrickolo.gy/rem_and_px/?u=https://someurl.com/style.cssExample 2:
http://kubrickolo.gy/rem_and_px/?u=https://someurl.com/style.css&uval=20%Example 3:
http://kubrickolo.gy/rem_and_px/?u=https://someurl.com/style.css&uval=20px## Info
Use it directly on: http://kubrickolo.gy/
Contact: [email protected]## Credits
Created by: Bob van Luijt (Kubrickology)
Twitter: (https://twitter.com/bobvanluijt)