Quantcast
Channel: admin – Digerati Consulting
Viewing all articles
Browse latest Browse all 10

Convert Pixles to REM: WordPress calculator for responsive design

$
0
0

Instructions

Just type the value in pixels and hit Enter. You will get two results – one to be used for font-size, width, height, margin, padding and the other result for line-height.

document.getElementById( "rem-size" ).value = fRem.toString() + "rem"; document.getElementById( "line-height-size" ).value = fLine.toString(); }

REM SIZE CALCULATOR

Rem
Line-height

Tip: A single click then selects the whole result, after that you can copy and paste it to your CSS.


Viewing all articles
Browse latest Browse all 10

Trending Articles