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 trialLawrence Bezuska
2,281 Points@media screen and (min-width: 660px)
@media screen and (min-width: 660px) {
/*********************
HEADER
**********************/
nav {
background: none;
float: right;
font-size: 1.125em;
}
}
this does not make my nav bar float to the right. it moves it down?
Julie Myers
7,627 PointsCould you post the rest of your html and css coding?
3 Answers
Tina Maddox
28,102 PointsHello Lawrence, Did you check your margin and padding? margin: 0; padding: 0;
Tina Maddox
28,102 Pointsnav {
background: none;
float: right;
font-size: 1.125em;
margin-right: 5%;
text-align: right;
width 45%;
}
Tina Maddox
28,102 PointsIf you watch the video again beginning around 03:00 :) I hope this helps
Sergio Alen
26,726 PointsUse your browser developer tools, see if by adding !important solves it. like this
float: right !imporant;
Lawrence Bezuska
2,281 PointsThank you all. Turns out it was a typo on the main CSS.
Tina Maddox
28,102 PointsI am glad you figured it out!
Happy coding :)
Austin Whipple
29,725 PointsAustin Whipple
29,725 PointsEdited your post a bit for readability.