quick html question... scrolling="no"???

Discussion in 'Web Design & Coding' started by Ketchupisyourfriend, Mar 1, 2003.

  1. Ketchupisyourfriend

    Ketchupisyourfriend OSNN Senior Addict

    Messages:
    262
    Ok I'm making an active desktop and I'm trying to get a sliding menu from the right side. It works fine on the left, but when I put it on the right it makes scroll bars which I don't want. The object is to have the menu mostly hidden to the right, then it slides on screen when you click it. Like I said it works fine if I hide it to the left, but on the right it wants to let me scroll over to see everything. I know if you're making frames you can put scrolling="no" but what about just for the body? Is there somewhere I can tell it not to scroll?
     
  2. Ketchupisyourfriend

    Ketchupisyourfriend OSNN Senior Addict

    Messages:
    262
    I managed to do it by doing:

    <style>
    body.noscroll {overflow:hidden}
    </style>

    <body class="noscroll">

    it seems to work just fine, if anybody would like to reccomend a different way feel free
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    This is most probably the only way, you can play with the overflow:<*> setting a bit to make it the way you want.