Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Little 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

Kelsey Jezbera
Kelsey Jezbera
1,118 Points

Try adding clear: both; in the footer after the text align.

1 Answer

It Works!!

Many thanks indeed!