Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Ipswich
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scroll bars in frames

    Is it possible to turn horizontal scroll bars off yet still have vertical ones within a frame?

    thanks

    Pete

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Try this (in any frame document):

    <style type="text/css">

    body {
    overflow-x: hidden;
    overflow-y: scroll;
    }

    </style>

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    United Kingdom
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should work, I havnt tried it out.

    <style type="text/css"><!--
    #FrameName{overflow-x:hidden;}
    /--></style>


    And then have a id tag in the frames body named "FrameName".
    As follows:

    <body id="FrameName">

    Ta Da.

  • #4
    New Coder
    Join Date
    Aug 2002
    Location
    United Kingdom
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Damn 2 minutes.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Put this in the BODY of your frame:
    Code:
    <script>
    document.body.style.overflow="hidden";
    document.body.style.overflow="moz-scrollbars-vertical";
    </script>

  • #6
    New Coder
    Join Date
    Aug 2002
    Location
    Ipswich
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there a solution that is cross browser compatible? I can olny seem to get them to work in IE. Bosko, I can't seem to get your solution to work at all.


  •  

    Posting Permissions

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