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 trialPaul Cleenewerck
684 PointsLittle issue with the first changes on the Responsive CSS and the contact page
Hi Guys, so far, I almost hgad no troubles designing the webs tie with the approach taught by Nick; However, now I came across with a few issues ith the responsive CSS:
On the contact page, since we made a few changes for the responsive CSS features, such qs having the phone number, mail and twitter info on the right of the Contact text instead of below the contact text, the footers (Social icons) are now displayed at the top of the page instead of the bottom when I extend the window⦠Although it was initially at the bottom before I made the responsive changes. Here is the code I entered:
Main.CSS:
.contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9em; }
.contact-info a { display: 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 2/phone.png'); }
.contact-info li.mail a { background-image: url('../img 2/mail.png'); }
.contact-info li.twitter a { background-image: url('../img 2/twitter.png'); }
Responsive.CSS: (Since I've included this code, I now have the social icons on top on the contact page, although not on the)
#primary { width: 50%; Float: left; }
#secondary { width: 40%; float: right; }
Here is also what I've coded in my main CSS related to footers:
footer { font-size: 0.75em; text-align: center; padding-top: 50px; color: #ccc; }
.social-icon { width: 20px; height: 20px; margin: 0 5px; }
Does anyone have an idea how to correct this?
Many thanks
1 Answer
Paul Cleenewerck
684 PointsIt Works!!
Many thanks indeed!
Kelsey Jezbera
1,118 PointsKelsey Jezbera
1,118 PointsTry adding clear: both; in the footer after the text align.