Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Build a Responsive Website Advanced Techniques Viewport Sized Typography & FitText.js

Matt Freeman
Matt Freeman
3,990 Points

cant get my head around this problem

HELP !!! i don't understand this problem at all please explain like you are explaining to a amateur beginner

2 Answers

Since the script has been added to the document before the closing body tag, you need to add the attribute called class with a value called "fittext1" to your level 1 header aka h1. so basically look for your h1 header in the body and add a class "fittext1" like so:

starting:

<h1></h1>

resulting in:

<h1 class="fittext1">Your Header</h1>
Matt Freeman
Matt Freeman
3,990 Points

Brilliant thank you !!