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
Jack Duong
6,324 Pointsweb design track - Contact details are not in the right place
I'm following nicks track on web design, and I noticed that on my contact page, the detail details are lined up right below the 'Contact' link, which is more towards the middle and right next to 'General Information. In Nick's video, there is more space in the middle separating the two, giving it a more balanced appearance. I can't figure out how to fix it. This is my code.
<section id = "secondary">
<h3>Contact Details</h3>
<ul class ="contact-info">
<li class = "phone"><a href = "tel:646-417-3976">646-417-3976</a></li>
<li class = "mail"><a href="mailto:Jackyang1179@gmail.com">jackyang1179@gmail.com</a></li>
<li class = "facebook"><a href ="https://www.facebook.com/jack.duong1179">Facebook page</a></li>
</ul>
</section>
.contact-info{
list-style:none;
padding: 0;
margin:0;
font-size:0.9em;
}
.contact-info a{
display:inline-block;
min-height:20px;
background-repeat:no-repeat;
background-size:20px 20px;
padding: 0 0 0 30px;
margin:0 0 10px;
}
.contact-info li.phone a {
background-image:url('../img/phone.png');
}
.contact-info li.mail a {
background-image:url('../img/mail.png');
}
.contact-info li.facebook a {
background-image:url('../img/facebook.png');
}</p>
3 Answers
Jack Duong
6,324 PointsNvm. Figured it out. Spelling error -_-
Jacob Miller
12,466 PointsThis probably has to do with the media queries involved. Can you post the media query section of your css?
Jack Duong
6,324 Pointssure
@media screen and (min-width:480px){
/***************************************************************
TWO COLUMN LAYOUT
************************************************************/
#primary{
width:50%;
float:left;
}
#seconday{
width:40%;
float:right;
}
}
@media screen and (min-width:660px){
Jack Duong
6,324 Pointsthanks