Why is there a scroll bar on my site?

Discussion in 'HTML & Website Design' started by riftshighway, Jul 12, 2008.

  1. #1
    Hello there!

    My site at w ww.airsoftica.com is acting a little bit funny. There's a horizontal scroll bar on the browser (if you're running at 1024x768) that really shouldn't be there.

    I've been looking for the rogue code but I cannot find it for the life of me!

    Anyone who is familiar with CSS and html could really give me a hand. Thanks!
     
    riftshighway, Jul 12, 2008 IP
  2. skenk

    skenk Banned

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Start by bringing the width of your wrapper down a few pixels... Try have a look with firebug and see what you find, I am not on that resolution so I cannot help too much...
     
    skenk, Jul 12, 2008 IP
    riftshighway likes this.
  3. riftshighway

    riftshighway Active Member

    Messages:
    368
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #3
    That did it--I took my wrapper from 930px to 940px.

    Now exactly what does the wrapper do?

    Rep out!
     
    riftshighway, Jul 12, 2008 IP
  4. skenk

    skenk Banned

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    wrapper mainly keeps your site together, allowing the site to be moved left or right...

    Give a wrapper a width and set its margin to auto will centre...
    there are other things it is used for but thats one of the main reasons lol...
     
    skenk, Jul 12, 2008 IP
  5. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Wrappers are mostly used to when you have layers and you want to give them a location such as centering. Using that to center means that it will stay in the middle of the screen for all resolution.
     
    NsaneNoob, Jul 12, 2008 IP