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
Trevor Williams
5,859 PointsLayouts: Add an a tag with the class "brand" and the content "Treebook"
Hi, I'm having some trouble on problem #5 on the layouts quiz,
The question is...
Add an a tag with the class "brand" and the content "Treebook"
My error message is...
Bummer! There is no a tag in your navbar container.
This is what I attempted...
<.div class="navbar">
<.div class="navbar-inner">
<.div class="container" class="brand">Treehouse
<./div>
<./div>
<./div>
<.div class="container">
<.%= yield %>
<./div>
I put the periods in the code so it would show
I went back to my Treebook project and checked out the application.html.erb file to see if I could try something similar, but I haven't been successful. Can someone help me out please?
Thanks!
2 Answers
Jon Findley
31 PointsSounds like you need one of these -- an <a> tag.
So something like this for the class: a.brand{ color:#0033ff; }
and like this in usage: <a class="brand" href="http://www.treehouse.com"> Treebook </a>
might work, although I JUST signed up, so I could be wrong.
Trevor Williams
5,859 PointsYou were right, thanks! Actually, half of my error was that I typed "Treehouse" instead of "Treebook" :[ lol