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
Deborah Williamson
2,997 PointsAdjust the Profile Page and Header
So every thing on the site looks fine. But when i adjust the window size, the navigation buttons aren't going going into the dark green border area. They're only floating to the right.
Deborah Williamson
2,997 PointsIm on the "How to Make a Website" track.
Deborah Williamson
2,997 Pointsresponsive.css
@media screen and (min-width: 480px) {
/********************
TWO COLUM LAYOUT
********************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/**************************************
3 * 5 = 15%
100% - 15% = 85%
85 / 3 = 28.333333333333
**************************************/
/********************
PAGE: PORTFOLIO
********************/
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(3n+1) {
clear: left;
}
}
@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.82em;
margin-bottom: 20px;
}
header {
border-bottom: 5px solid #599a68;
margin-bottom: 60px;
}
Karsten Sørensen
2,274 PointsHi Deborah
Try moving the ending bracket after the second @media screen input to the bottom of the page, this should fix the problem :)
It should look like the following instead:
@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.82em;
margin-bottom: 20px;
}
header {
border-bottom: 5px solid #599a68;
margin-bottom: 60px;
}
}
Deborah Williamson
2,997 PointsThank so much Karsten Sørensen! It seems I'm having a problem lately putting brackets in the right place :/
1 Answer
Karsten Sørensen
2,274 PointsNo problem Deborah Williamson, happy to help... I just finished the course myself lately and the best way to get even better is to help others I guess :)
myackley35
34,574 Pointsmyackley35
34,574 PointsHi Deborah!
Which course are you having trouble with and can you add the code you have so far?