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 trialVahid Ebrahimi
7,341 PointsI don't know what I'm doing wrong with my font sizing?
It keeps saying make sure I set my font-size to 0.9em but that is what I'm doing and it won't let me pass.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: ‘Changa One’, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
img {
max-width: 100%;
}
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
#gallery li {
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7;
}
nav ul {
list-style: none;
margin: 0 10px;
padding: 0;
}
nav li {
display: inline-block;
}
nav a {
font-weight: 800;
padding: 15px 10px;
}
.profile-photo {
display: block;
margin: 0 auto 30px;
max-width: 150px;
border-radius: 100%;
}
.contact-info ul {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: 0;
}
2 Answers
Billy Bellchambers
21,689 PointsYou are very close with your code two issues I found were as below.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: ‘Changa One’, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
img {
max-width: 100%;
}
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
#gallery li {
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7;
}
nav ul {
list-style: none;
margin: 0 10px;
padding: 0;
}
nav li {
display: inline-block;
}
nav a {
font-weight: 800;
padding: 15px 10px;
}
.profile-photo {
display: block;
margin: 0 auto 30px;
max-width: 150px;
border-radius: 100%;
}
.contact-info { /*be careful with selectors you were only asked to target the ul list with the class of contact-info what you were selecting was the ul nested within contact-info which didnt exist*/
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: none; /*also note that to remove list-style the keyword is none not "0"*/
}
This should work now minus my annotations.
Happy coding
Vahid Ebrahimi
7,341 PointsThank you so much Billy, that was extremely helpful and got me through the challenge :)
Billy Bellchambers
21,689 PointsMy pleasure glad it helped
Kristopher Van Sant
Courses Plus Student 18,830 PointsKristopher Van Sant
Courses Plus Student 18,830 PointsVery nice explanation Billy! Really liked how you explained what their code was actually doing, and why that didn't work for this challenge.
Billy Bellchambers
21,689 PointsBilly Bellchambers
21,689 PointsThanks Kristopher, I really appreciate the feedback.
I just answer the questions and try to provide some insight to why it failed rather than just simply giving the correct answer, this way hopefully they learn from the error rather than blindly follow.
I find this more useful when I receive answers so just grant the same luxury to those I answer too :)
Kristopher Van Sant
Courses Plus Student 18,830 PointsKristopher Van Sant
Courses Plus Student 18,830 PointsYou are very welcome. :)
And that's perfect BIlly! Those type of answers are truly the most beneficial.