Can the DIV tag be STYLEd with only a vertical scroll bar?

Discussion in 'HTML' started by Guy, Dec 13, 2003.

  1. Guy

    Guy Guest

    I'd like a vertical scroll bar only in my DIV tag, I don't like the
    horizontal scroll bar.

    Here's my code now:

    <STYLE TYPE='text/css'>
    DIV{height: 10em;width: 400;overflow: scroll;border: solid gray 1px;padding:
    0.2em 0.2em;}
    </STYLE>

    Guy
     
    Guy, Dec 13, 2003
    #1
    1. Advertising

  2. Guy

    Guy Guest

    nevermind...
    I found overflow:auto
    Sorry for the post.

    "Guy" <> wrote in message
    news:k8wCb.10611$...
    > I'd like a vertical scroll bar only in my DIV tag, I don't like the
    > horizontal scroll bar.
    >
    > Here's my code now:
    >
    > <STYLE TYPE='text/css'>
    > DIV{height: 10em;width: 400;overflow: scroll;border: solid gray

    1px;padding:
    > 0.2em 0.2em;}
    > </STYLE>
    >
    > Guy
    >
    >


    nevermind...
    I found overflow:auto
    Sorry for the post.
     
    Guy, Dec 13, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Framework fan
    Replies:
    2
    Views:
    9,305
    Framework fan
    Dec 2, 2003
  2. George
    Replies:
    4
    Views:
    551
    George
    Feb 13, 2004
  3. bienwell
    Replies:
    8
    Views:
    14,344
    vabraham
    Dec 7, 2011
  4. David Pratt
    Replies:
    0
    Views:
    510
    David Pratt
    Jun 28, 2005
  5. How to avoid horizontal Scroll bar in DIV Tag

    , Sep 14, 2008, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    1,359
    Allen Chen [MSFT]
    Sep 16, 2008
Loading...

Share This Page