The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Removed borders, now page has horizontal scrollbar?

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #40696

    While building my site, I was using

    * {
    border: 2px solid red;

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


    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.


    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 :)


    Haha, will do. Thanks =)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.