Datalist and CSS positioning

Discussion in 'ASP .Net' started by Eric, Sep 14, 2005.

  1. Eric

    Eric Guest

    I have a page with some ASP.NET controls at the top and a datalist which
    might include anything from 1 to 25 elements below them, all laid out
    with absolute CSS positioning.

    The problem I'm having is that when the datalist goes off the bottom of
    the page and adds a scrollbar (which in itself is fine with me), the the
    last element of the list runs right up against the browser status bar,
    with none of the whitespace I would expect. If I don't use the CSS
    positioning, then there's some whitespace between the bottom of the list
    and the status bar, as I would expect.

    What causes this and is there a workaround?
     
    Eric, Sep 14, 2005
    #1
    1. Advertising

  2. Try adding a "padding-bottom:1em" to the style for it.

    --
    Curt Christianson
    site: http://www.darkfalz.com
    blog: http://blog.darkfalz.com



    "Eric" wrote:

    > I have a page with some ASP.NET controls at the top and a datalist which
    > might include anything from 1 to 25 elements below them, all laid out
    > with absolute CSS positioning.
    >
    > The problem I'm having is that when the datalist goes off the bottom of
    > the page and adds a scrollbar (which in itself is fine with me), the the
    > last element of the list runs right up against the browser status bar,
    > with none of the whitespace I would expect. If I don't use the CSS
    > positioning, then there's some whitespace between the bottom of the list
    > and the status bar, as I would expect.
    >
    > What causes this and is there a workaround?
    >
     
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Sep 14, 2005
    #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. Nevyn Twyll
    Replies:
    8
    Views:
    1,921
  2. KatB
    Replies:
    8
    Views:
    4,211
  3. Replies:
    5
    Views:
    450
    Toby Inkster
    Aug 11, 2005
  4. Len Philpot
    Replies:
    2
    Views:
    5,971
    Len Philpot
    Dec 24, 2005
  5. Peter
    Replies:
    2
    Views:
    464
    Jonathan N. Little
    Mar 26, 2006
Loading...

Share This Page