Forums

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
    Posts
  • #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?
    Thanks!

    #113715
    TheDoc
    Member

    Do you have a link?

    #113716

    Deleting this. Will post link a a few, sorry!

    #113733

    Yikes, sorry that’s so long. New here if you can’t tell, haha.

    #113730
    #113740
    TheDoc
    Member

    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.

    #113741

    Ugh, I knew it was something simple! Thanks so much!

    #113742
    JohnMotylJr
    Participant

    lol, read the OP super fast.. problem solved! But still, use some box-sizing :)

    http://codepen.io/anon/pen/jGpmt

    #113746

    Haha, will do. Thanks =)

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