Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 6, 2018 02:51 pm GMT

Fun Tip: Use calc() to Change the Height of a Hero Component

The concept of Fluid Typography was tossed around a couple of years ago. The main idea is that if you know what size your font is at two different viewport sizes, then you can have the font scaling smoothly between the two sizes. We had a jQuery solution for this in FitText (meant of headings, of course) until the calc() function was shipped giving us a pure CSS solution.

p {
font-size: calc(16px + (24 - 16)*(100vw - 400px)/(800 -

The post Fun Tip: Use calc() to Change the Height of a Hero Component appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/fun-tip-use-calc-to-change-the-height-of-a-hero-component/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks