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 trialMark Sims
2,637 PointsI'm supposed to select the unordered list with the contact-info and change font size to 0.9em. Where is it?
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%; }
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%;
}
1 Answer
Robin Orellana
11,626 PointsYou have to assume that the html file has an unorder list with the class contact-info in it like the workspace does. so the code should be
.contact-info {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: none;
}
you need to select the class yourself
Mark Sims
2,637 PointsMark Sims
2,637 PointsThis is also the answer I came up with but it still stated that I needed to set font-size to 0.9. I put in your answer to be sure and it stated the same thing. Am I putting the code in the wrong spot?
Robin Orellana
11,626 PointsRobin Orellana
11,626 Pointsi put my code in the very bottom
Mark Sims
2,637 PointsMark Sims
2,637 PointsI finally figured out what the problem with my answer was. I was leaving off the em when I put in the numerical digits for the font size. Simple mistake causing me a big headache. Thanks a lot for your help. It's good to know that if I get stuck I can email you guys for help and receive a response in less than a days time.
Robin Orellana
11,626 PointsRobin Orellana
11,626 Pointsno problem. that is why we are here for to help each other out