How do I get text to shrink instead of wrap

[ad_1]

I'm working on rebuilding the website for my company and unfortunately they are not willing to pay for any upgraded plans. I'm running into issues with the headers of different sections wrapping when they are too long instead of shrinking to fit the screen's resolution. Is there a way to fix that?

Here's an example:

https://preview.redd.it/d7x8fut3zeod1.png?width=986&format=png&auto=webp&s=62c7218b22e62e7f288b947e4346a645f5639a95

https://preview.redd.it/85hklvt3zeod1.png?width=724&format=png&auto=webp&s=c7a0b66f79dcab98a7548a68bc14563d41bb8b98

[ad_2]
4 Comments
  1. Breakpoints typically is the answer. But the use of dynamic text is what I like. This will allow for the text to shrink and grow based on the size of the screen.

  2. You can make the font size responsive by using vw (viewport width) units, which scales the font size based on the viewport width.

    Example:

    .text-class { font-size: 10vw; }

    This will dynamically adjust the font size based on screen width.

  3. Use clamp along with VW. Only using VW could make it so it becomes too big or too small.

    font-size: clamp(0.85rem, 5vw, 5rem) or something like that

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer