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 trialTony McCabe
8,445 PointsHelp 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
21,066 PointsTry:
<h1 id="fittext1" >Smells Like Bakin'</h1>
Christopher Sukovich
13,382 PointsAll 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!