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 trialBoxxie The Creative One
423 PointsDo you know this problem?
Ive coded on a html website and done as him in the video but i cant find the problem so my text under the pictures arent blue as his text.
Screenshots!!! http://gyazo.com/4160dfbfe2af47fd6f4f06bc9ea6af06
The text between the pictures "Should be Blue" http://gyazo.com/94b8e315c1fade6d074afda8844dea1b
Thanks!
6 Answers
Tunde Adegoroye
20,597 PointsYou've add the image inside of the list item the structure seems wrong to me i'm not on this course for now but the general html for anchors inside of a link is <li><a href="">Some text</a></li> so you start the list item and add the text in-between the A rather than another paragraph
Stone Preston
42,016 PointsThis seems like a CSS issue, could you post that as well?
Boxxie The Creative One
423 PointsI could but do i post it as a discussion too?
Stone Preston
42,016 Pointsid just edit your original post and provide a link to your css just like you did with the other code
Jason Anello
Courses Plus Student 94,610 PointsI think I finally get it now. The blue Tim is talking about is the default blue text that unvisited anchor text receives.
Styling hasn't been applied yet.
The problem is with your markup. Your closing a
tags are incorrect. You have <a/>
and it should be </a>
.
I think this is causing your paragraph text to not be part of the link and so it doesn't receive that default styling.
Boxxie The Creative One
423 PointsCan i solve my problem somehow?
Cause ive tried to change the <a/> too a </a>
Look what happens :/ http://gyazo.com/1472d79f2c7575a68ac2c73175f6fd87
Its very hard when not knowing much about coding yet.
Boxxie The Creative One
423 Points.... :C
Tunde Adegoroye
20,597 PointsTunde Adegoroye
20,597 PointsIt's because you put the texts in paragraphs rather than anchor elements
Stone Preston
42,016 PointsStone Preston
42,016 PointsTunde Adegoroye that might not be it. I think the text exists as a description of the image, not a link to it. the image itself is a link to the image file.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsTunde, in this case the paragraph is supposed to be part of the link which is ok with html5