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 trialerdragerdragsson
Courses Plus Student 5,887 Pointsnavigation links placed wrong!
heres a picture of it http://imgur.com/IuFxgFP
i think the navigation links are too long so they are pushing away the "other" link, i have no idea what to do now, anyone got a clue?
just tell me if you need the codes for my "main.css" or "index.html" or the "@media screen" css
5 Answers
Zachary Green
16,359 PointsIt looks like you need to add a media query to handle small screens. What would you like the links to look like and yes please paste your code in
erdragerdragsson
Courses Plus Student 5,887 Pointsnothing happens when i make the width higher
erdragerdragsson
Courses Plus Student 5,887 Pointsinstead of making the text smaller, is there an way to make the links stay in line when i make the browser smaller?
Zachary Green
16,359 PointsWhen you get to sizes that small you should think mobile so smaller text is better.
erdragerdragsson
Courses Plus Student 5,887 PointsHeres some images of the websites behaviour
Scroll down to see the images.
at first its looking good, but then the "other" link is positioning wrong. the its good again, then when the browser gets smaller it gets positioned wrong again,
Zachary Green
16,359 PointsThe width at 45% is not long enough to show your links on one line in the 660px media query. Still on smaller screens its just the over all size of your nav elem
erdragerdragsson
Courses Plus Student 5,887 Pointsnothing happens when i set the width to a higher %
erdragerdragsson
Courses Plus Student 5,887 Pointserdragerdragsson
Courses Plus Student 5,887 PointsThis is the media query css file
#gallery li:nth-child(2n+1) { clear:left;
}/**************************************** PAGE: PORTFOLIO *****************************************/
.profile-photo { float: left; margin: 0 5% 80px 0; }
}
Zachary Green
16,359 PointsZachary Green
16,359 PointsYes it does look like you need to change the margin/padding to to allow the text to fit or smaller text. Other than the you ming just have the link sit two to a column