> Frame - want scroll bars vertical only <

Posted on 2006-04-20
Last Modified: 2010-08-05

I have a frameset that has one frame within it set to scrolling="auto" but when I put a table in it that is vertically taller than the page/frame both the vertical and horizontal scroll bars appear (the table is thin). I was after a way to only have the vertical scroll bar show if required rather than both as it would make the page much cleaner looking. I am sure I have seen before and not sure if this is the way "auto" should work??


Question by:cmuir
    LVL 8

    Accepted Solution


    According to there's no standard solution.
    HOWEVER, I found that when you apply the following NON-STANDARD css code to the concerning document (i.e., the frame with tables)

    html, body {
        overflow-x: hidden;

    the horizontal scrollbar will disappear, no matter how wide the content is. Note that this is only supported (AFAIK) IE and Firefox 1.1 and above (inc. the equivalent Mozilla/SeaMonkey versions), and fails on Opera. So you should consider carefully whether really to use it or not...

    Author Comment

    works for me!! IE will be the major portion of my visitors so safe on that one :o)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now