SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    Philippines
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What causes mozilla to have a horizontal scroll bar

    Hi guys, me once again,
    I've been getting this horizontal scroll bar in mozilla once in a while and sometimes its just annoying, what causes it? and what fixes it? Its definitely a Mozilla only bug

  2. #2
    SitePoint Zealot jfitz's Avatar
    Join Date
    Mar 2004
    Location
    Lovely Leipzig
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A link to an example would be nice. It helps out the few of us who aren't psychic

  3. #3
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have had a similar "issue" with an horizontal scrollbar when i set a <div> to 100%, once set to 99% it was gone...

    ??
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Its definitely a Mozilla only bug
    Its no bug its just that you've set something longer than 100%.

    Remember that any borders or padding you add to a 100% element will force a scrollbar. If you work in ie in quirks mode then this doesn't happen because ie uses the broken box model where padding and borders are contained within the 100%.

    It will be a simple answer and you just need to look at your code to see if it all adds up. Remember, also if you put an element margin-left by 200px and then make that element 100% then it will be 100% + 200px wide thus forcing a scrollbar.

    As jfitz said if you can provide the code then we can provide the answer

    Paul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •