user4490434
user4490434

Reputation:

Width of page is bigger than I set it to?

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

Answers (1)

AtheistP3ace
AtheistP3ace

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

Related Questions