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 trialBryan Sory
1,978 PointsNick gets the header, logo, h1, and h2 elements to break into 2 columns as he sizes the screen up and down.
I'm coding along with the lessons and my About page doesn't replicate this functionality. My code in responsive.css is the same. Is the error possibly in my html code in the About file? #reallystuck
6 Answers
Oliver Sewell
16,425 PointsHi please can we see your code , are you using media queries and is your responsive.css file linked in your html?
Bryan Sory
1,978 Points<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bryan Sory | Solutions Architect</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> <body> <header> <a href="index.html" id="logo"> <h1>Bryan Sory</h1> <h2>Solutions Architect</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html" class="selected">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <img src="img/suit black and white sory copy.jpg" alt="Photograph of Bryan Sory" class="profile-photo"> <h3>About</h3> <p>Hello! I'm Bryan Sory. I specialize in new product development and customer discovery for startups. When I'm not doing that or writing code, I enjoy finding new, cool experiences and spending time with friends and family.</p> <p>If you'd like to follow me on Twitter, my username is <a href="https://twitter.com/bryansoryactual">@BryanSoryActual</a>.</p> </section> <footer> <a href="https://twitter.com/bryansoryactual"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="https://www.facebook.com/brighteggsolutions"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Bryan Sory.</p>
</footer>
</div>
</body> </html>
Bryan Sory
1,978 Points@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; }
}
@media screen and (min-width: 660px) {
/***** Header *****/
nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%; }
#logo { float: left; margin-left: 5%; text-align: left; width: 45%; }
h1 { font-size: 2.5em; }
h2 { font-size: 0.825em; margin-bottom: 20px; }
header { border-bottom: 5p solid #599a68; margin-bottom: 60px; }
}
Oliver Sewell
16,425 Pointshmm on the border bottom of your header you missed the x on 5px
Bryan Sory
1,978 PointsThanks Oliver. I did miss that. Still, it doesn't rearrange at all like Nick's page does.
Ekaterina Perova
2,715 PointsIt seems like you have some excess closing curve bracket on the line 5 of your css code. P.S. If the answer is still relevant :)
Karolin Rafalski
11,368 PointsKarolin Rafalski
11,368 PointsCan you post your html anD css codes for us to look at?