Git Product home page Git Product logo

convert-text-shadow-form-px-to-em-automatic's Introduction

Convert text shadow form px to em

I had a Task was required to convert css property to em, and found a problem converting this

text-shadow: rgb(255, 255, 255) 7px 0px 0px, rgb(255, 255, 255) 6.93333px 1px 0px, rgb(255, 255, 255) 6.71667px 1.96667px 0px, rgb(255, 255, 255) 6.36667px 2.91667px 0px, rgb(255, 255, 255) 5.88333px 3.78333px 0px, rgb(255, 255, 255) 5.28333px 4.58333px 0px, rgb(255, 255, 255) 4.58333px 5.3px 0px, rgb(255, 255, 255) 3.78333px 5.88333px 0px, rgb(255, 255, 255) 2.9px 6.36667px 0px, rgb(255, 255, 255) 1.96667px 6.71667px 0px, rgb(255, 255, 255) 1px 6.93333px 0px, rgb(255, 255, 255) 0px 7px 0px, rgb(255, 255, 255) -1px 6.93333px 0px, rgb(255, 255, 255) -1.98333px 6.71667px 0px, rgb(255, 255, 255) -2.91667px 6.36667px 0px, rgb(255, 255, 255) -3.78333px 5.88333px 0px, rgb(255, 255, 255) -4.58333px 5.28333px 0px, rgb(255, 255, 255) -5.3px 4.58333px 0px, rgb(255, 255, 255) -5.9px 3.78333px 0px, rgb(255, 255, 255) -6.36667px 2.9px 0px, rgb(255, 255, 255) -6.71667px 1.96667px 0px, rgb(255, 255, 255) -6.93333px 0.983333px 0px, rgb(255, 255, 255) -7px -0.0166667px 0px, rgb(255, 255, 255) -6.93333px -1px 0px, rgb(255, 255, 255) -6.71667px -1.98333px 0px, rgb(255, 255, 255) -6.36667px -2.91667px 0px, rgb(255, 255, 255) -5.88333px -3.8px 0px, rgb(255, 255, 255) -5.28333px -4.6px 0px, rgb(255, 255, 255) -4.58333px -5.3px 0px, rgb(255, 255, 255) -3.76667px -5.9px 0px, rgb(255, 255, 255) -2.9px -6.36667px 0px, rgb(255, 255, 255) -1.96667px -6.71667px 0px, rgb(255, 255, 255) -0.983333px -6.93333px 0px, rgb(255, 255, 255) 0.0166667px -7px 0px, rgb(255, 255, 255) 1.01667px -6.93333px 0px, rgb(255, 255, 255) 1.98333px -6.71667px 0px, rgb(255, 255, 255) 2.91667px -6.36667px 0px, rgb(255, 255, 255) 3.8px -5.88333px 0px, rgb(255, 255, 255) 4.6px -5.28333px 0px, rgb(255, 255, 255) 5.3px -4.56667px 0px, rgb(255, 255, 255) 5.9px -3.76667px 0px, rgb(255, 255, 255) 6.36667px -2.9px 0px, rgb(255, 255, 255) 6.71667px -1.95px 0px, rgb(255, 255, 255) 6.93333px -0.983333px 0px;

So I've done a script that converts css property form px to em using PHP.

How to use

  • just copy index.php on your localhost and edit file by insert your code.
  • change the value of $px to your font size.
  • run the code and see the result.

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.