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
Mani Saini
3,101 PointsSecond Media Query
I am not sure why there was a use of width - 45% for the navigation :
nav { background: none; float :right; font-size:1.1.25em; margin-right: 5%; text-align: right; width : 45% }
I removed the width and tested the site but no changes so not sure why it was used in the first place.
1 Answer
Andre Taplin
1,374 PointsHi Mani,
Maybe the use of the width property is simply a precaution in case different browsers on different devices interpret our web page differently. We want our nav elements to have a fixed with of 45% of the page justified on the right side. When you delete the width in your code, the normalize.css is used which probably regulates the width of nav to some default value which is why you see no change. If you were to change the value (%) of width, however, you would see why we use 45% instead of another like, say, 1% or 75%. I think it's there so the hosting device/browser can have a set value.