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

HTML How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

@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?

Austin Whipple
Austin Whipple
29,725 Points

Edited your post a bit for readability.

Julie Myers
Julie Myers
7,627 Points

Could you post the rest of your html and css coding?

3 Answers

Tina Maddox
Tina Maddox
28,102 Points

Hello Lawrence, Did you check your margin and padding? margin: 0; padding: 0;

Tina Maddox
Tina Maddox
28,102 Points
nav {
  background: none;
  float: right;
  font-size: 1.125em;
  margin-right: 5%;
  text-align: right;
  width 45%;
}
Tina Maddox
Tina Maddox
28,102 Points

If you watch the video again beginning around 03:00 :) I hope this helps

Use your browser developer tools, see if by adding !important solves it. like this

float: right !imporant;

Thank you all. Turns out it was a typo on the main CSS.

Tina Maddox
Tina Maddox
28,102 Points

I am glad you figured it out!

Happy coding :)