Reputation:
I set my header div to width: 100% but a horizontal scroll bar appears and I can scroll a lot more to the right of the page, which is completely white.
Upvotes: 1
Views: 82
Reputation: 9691
Its because your navbar has a width of 90% of page but is left 500px.
So if page width at 100% equals 1000px and navbar is 90%, that means navbar is 900px wide and then placing it 500px left means its 400px over the width of the page which causes the scrollbar to appear.
Upvotes: 1