Giter Site home page Giter Site logo

vinuraj / px-to-rem-converter-calculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 406 KB

A simple calculator that converts PX to REM (pixel to root em)

Home Page: https://px-to-rem-calc.diagramz.com/

HTML 52.80% JavaScript 30.21% CSS 16.99%
css pixels font fontsize fonts

px-to-rem-converter-calculator's Introduction

PX to REM converter / PX to REM calculator

A simple calculator that converts PX to REM (pixel to root em) with the base font size of 16px or 16 pixels _(but can be changed based on your CSS requirements).

As a designer or front end developer, we use px (pixel) and rem (root em) as a relative unit of CSS to measure the length of screen media or screens or displays on various devices.

PX to REM calculation formula

You could also use the formula rem = px/base font size to manually calculate or convert PX to REM.

Stack used

  • Vite โšก (the super=fast frontend build tool)
  • Tailwind CSS (the utility-first CSS framework that allowed me to build this micro-website without even leaving my HTML)

The code is originally based on Danny Lamb work.

px-to-rem-converter-calculator's People

Contributors

vinuraj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.