SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Horizontal Scrollbar Nightmare!

  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Horizontal Scrollbar Nightmare!

    I'm trying (in vain) to get rid of the horizontal scrollbar at the bottom of my page. The page(s) in question lie within a frame and the content is nowhere near wide enough to require horizontal scrolling.

    it seems that when the table in question is too long vertically it automatically adds a horizontal scroll to the page also.

    any help much appreciated. i'm going quietly mad!

    the site in question is: www.pineapplepub.com and the sections in question are Home/Book Online

    many thanks if anyone can help.

  2. #2
    SitePoint Zealot number7's Avatar
    Join Date
    Jul 2004
    Location
    Virtual City, Neural Networks str. 7
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've looked over your source code and suppose problem is in table "width" parameter you use. Some TD's are set and some not. Try an experiment - Comment part of code and leave one TR only at a time with no WIDTH setting. Ex:

    Code:
    <table width="79%" >
    <tr>
    <td>bla bla</td>
    </tr>
    </table>
    Check out if scroll bar appears then. If it so - set table width to constant (ex.:200px). else - uncomment some <TR>'s and look again if scrlbar appears. In this step by step process you'll reach <TR> which makes you such problem. Set <TD> inside it with correct WIDTH setting and then all will be OK.

    By the way - there no scroll bar appears in FULLSCREEN MODE. Also All is OK
    on FireFOX browser. This is IE "feature".

  3. #3
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi.

    thanks for your reply.

    have tried your suggestions but nothing seems to work. even setting table width as exact pixels still gives me the horizontal scrollbar.

    any other thoughts?

    cheers

  4. #4
    Pointiest Petitions carrotflowers's Avatar
    Join Date
    Jul 2003
    Location
    Suburbs of DC (MD)
    Posts
    595
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking at the source for the online booking page, I notice you added a margin right and left to the body, I think that is possibly making the horiz. scrollbar. Try setting the body's margin and padding to 0, see what that does?

    I ntoiced that in Firefox, the menu doesn't work, which prob. means the same is true for Netscape.

  5. #5
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.

    Tried the margins thing already. Still not working.

    Am addressing the menu issue in Netscape & Firefox.

    Cheers.

  6. #6
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Solution

    It appears that brascolives solved the problem by adding the following CSS:

    HTML Code:
    <style type="text/css">
    html,body {
    	width:90%;
    }
    </style>
    I copied that from the source of the pinapplepub.com page to mine, which was having the same problem, and it is working fine for me now.

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
  •