...to get a visal for the divs. Everything seemed to be great, but when I removed that bit of code, now there appears to be 5px or so the the right making a horizontal scrollbar.
The horizontal scrollbar is being caused by your #navbar. It has a width of 100% but it also has a 2px border, which will add a total of 4px to the left and right of it, caused the scrollbar.
While building my site, I was using
...to get a visal for the divs. Everything seemed to be great, but when I removed that bit of code, now there appears to be 5px or so the the right making a horizontal scrollbar.
Any ideas on how to get rid of that? Thanks!
Do you have a link?
Deleting this. Will post link a a few, sorry!
Yikes, sorry that's so long. New here if you can't tell, haha.
www.code-this.com
The horizontal scrollbar is being caused by your
#navbar. It has a width of 100% but it also has a 2px border, which will add a total of 4px to the left and right of it, caused the scrollbar.Ugh, I knew it was something simple! Thanks so much!
lol, read the OP super fast.. problem solved! But still, use some box-sizing :)
http://codepen.io/anon/pen/jGpmt
Haha, will do. Thanks =)