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 trialnagamani palamuthi
6,160 Pointsafter rearranging code, my css code does not show on the webpage. no color or change color with hover. was working befo
this happened after the comments lesson.
Damien Watson
27,419 PointsMaybe broken links? Able to show your HTML?
nagamani palamuthi
6,160 Pointshttps://w.trhou.se/8n9ne4v0zz hope this will help in viewing my html code
nagamani palamuthi
6,160 Pointsmy css code. https://w.trhou.se/4ufhwzlojl
2 Answers
Damien Watson
27,419 PointsIn the HTML, line 38, the alt property is missing a closing double quote. This will have broken your page structure so may attribute to broken css. Wouldn't cater for the initial part of your site fail though.
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt=""> <!-- added " -->
</a>
Ok, also found that in your css, you are missing a closing bracket at line 24 for #logo:
#logo{
text-align:center;
margin:0;
} /* <--- */
h1 {
font-family:'changa One', sans-serif;
}
Damien Watson
27,419 PointsAlso, by default 'h1' is set to bold, as your imported font is already bold, this causes it to be bolder than designed. You may want to set h1 to normal.
h1 {
font-family:'changa One', sans-serif;
font-weight:normal;
}
nagamani palamuthi
6,160 PointsThank you all for your help. mr. watson, you were right. My code works now!
Cindy Lea
Courses Plus Student 6,497 PointsWhen you rearranged code you may have changed the precedence of the code. Some properties get changed by more than one class & if you change the order, you may have changed which properties get changed first/last. Without the code, I cant tell.
Steven Parker
231,198 PointsSteven Parker
231,198 PointsYou'll need to show your code to make it possible for someone to provide assistance.
You can share everything at once if you make a snapshot of your workspace and provide the link to it.