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. Advertisements

  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. Advertisements

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,739
    Framework fan
    Dec 2, 2003
  2. George
    Replies:
    4
    Views:
    734
    George
    Feb 13, 2004
  3. bienwell
    Replies:
    8
    Views:
    15,801
    vabraham
    Dec 7, 2011
  4. David Pratt
    Replies:
    0
    Views:
    670
    David Pratt
    Jun 28, 2005
  5. UJ
    Replies:
    1
    Views:
    802
    John Timney \(MVP\)
    Nov 1, 2006
  6. Mircea Pleteriu

    How to set up a vertical scroll bar for my datagrid control?

    Mircea Pleteriu, Jul 15, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    494
    Cristian Suazo
    Jul 17, 2003
  7. Marshal Antony
    Replies:
    1
    Views:
    721
    Alessandro Zifiglio
    Dec 31, 2003
  8. How to avoid horizontal Scroll bar in DIV Tag

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