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
sergio savala
3,683 PointsStuck quiz challenge Viewport Sized Typography & FitText.js
I am having a issue with this quiz and the next quiz as well. It states to add the unique ID defined within the fittext script to the level one header. I seem to be stuck on this question ? I have added the appropriate code and it still says that make sure you are adding it to the level one header ?
2 Answers
Graham Davidson
Courses Plus Student 14,966 PointsCan you post your code here so we can see what you have please.
sergio savala
3,683 PointsThat is the issue, the course is stating to use unique id fittext and apply it to the level one header. I think I am just assuming something to simple here since the code is provided at the bottom of the quiz. Am I suppose to be using the previous method stated in the video before the fittext method ? Really all I am doing is this ...
<div class="container">
<div class="grid_6 omega">
<h1 class="fittext1">Smells Like Bakin'</h1>
</div>
Am I just making this too simple? I figure I do not need to do anymore the link for jquery is listed in quiz predefined along with.
<script src="jquery.fittext.js"></script>
Is this all that is needed ? Maybe I just need to take a break and rewatch the videos later I seem to be confused as what the quiz is specifically asking for ?
sergio savala
3,683 PointsWow I guess I needed to take a break..... I came back finally reanalyzed everything and I saw I was defining as a class instead of a id.
<div class="container">
<div class="grid_6 omega">
<h1 id="fittext1">Smells Like Bakin'</h1>
That fixed that part. As for the script src below I was missing.
<script type="text/javascript">
$("#fittext1").fitText(1);
I was missing the.
<script type="text/javascript">
Thanks for helping anyway. It seemed like I just needed to take a 2 day break..... too much info at once equals brain overload.