Home  »  CodeSnippets   »   How to Change Font Width and Height of Text

How to Change Font Width and Height of Text

Posted: February 8, 2022 | by Michael Bright

Use the CSS transform scale function for this:

p { 
  transform: scale(.5, 1);
}

Where the first parameter is the width and the second is the height.

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.