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 trialPaula Mourad
5,154 Points"About" page not becoming 2 columns layout
Hi!
My "about" page does not become a 2 columns layout.
My CSS:
@media screen and (min-width: 480px) { /* TWO COLUMN LAYOUT */
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/* PAGE: PORTFOLIO */
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(4n) {
clear: left;
}
/* PAGE: ABOUT */
.profile-photo {
float: left;
margin: 0 5% 80px 0;
} }
4 Answers
Matt Milburn
20,786 PointsHi Paula,
Can you send your HTML as well?
Matt Milburn
20,786 PointsI can say your HTML looks free of errors. However, I can't see enough of the CSS to truly understand what is preventing a 2 column layout for you. Could I ask you to post more (if not all) of your CSS as well?
Or better yet, do you happen to have a live link where we could see this?
Paula Mourad
5,154 PointsHey Matt, Thanks for all your help.
These are my links: http://port-80-ns1tqib7jk.treehouse-app.com/index.html http://port-80-ns1tqib7jk.treehouse-app.com/about.html http://port-80-ns1tqib7jk.treehouse-app.com/contact.html
Let me know if you have any trouble viewing these links. Thanks once again! Paula
Belve Marks
7,332 PointsHey Paula!
Unfortunately, I couldn't follow those links. But...
I'm not seeing any id of "primary or "secondary". The only style implemented in the CSS here seems to be the class "profile-photo", which is floated left. The following text is behaving accordingly. Add those in appropriately should get you on the right road.
Hope this helps!
John Schaub
5,167 Points'''this is only a test <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>John Schaub | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href="https://fonts.googleapis.com/css?family=Changa+One|Open+Sans" rel="stylesheet"> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css">'''
Paula Mourad
5,154 PointsThanks John :)
Paula Mourad
5,154 PointsPaula Mourad
5,154 PointsHi Matt, Sure, here it is!