Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Help with using fittext script code challenge

Using the unique ID defined within the fittext script, add the appropriate code to the level one header to make it scale with the fluid layout.

h1 {
  font-size: 3em;
  font-weight: 100;
  letter-spacing: -2px;
}

Im not sure if I'm seeing things right. I'm actually going back to math class, any idea what the right ID is and where it goes. I used the same example in the tutorila video and no go.

2 Answers

Winnie E Tibingana
Winnie E Tibingana
21,066 Points

Try:

<h1 id="fittext1" >Smells Like Bakin'</h1>

All you need to do is grab the ID 'fittext1' at the bottom of the HTML:

    <script>
  $("#fittext1").fitText();
</script>

and drop it inside your <h1> tag. The script does the rest!