Search code examples
htmlcssfontsfont-face

What would font-size:30; be equivalent to in px?


font-size:30;

I know there's: em, px, pt, and percent

What does it mean when there's only a number and nothing next to it?

Is there a name for that measurement?

Also, what would font-size:30; be equivalent to in px?


Solution

  • It will be invalid.

    Here's a tip. Use your Developer Tools of your browser to test on your current website you are creating.

    e.g: Google Chrome: Go to Settings tab > More Tools > Developers Tool or Ctrl+Shift+I The developer tools will help you as a guide to your workaround.

    The DevTools provide web developers deep access into the internals of the browser and their web application.