SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Basic Div Question

    I'm trying to define a div as a container for a table. I would like the table to be constrained to the boundaries of the div and not extend beyond it. I've tried this:
    .
    Code:
    DisplayTableInAdmin{
      	position: absolute;
      	top:41px;
      	height:400px;
      	}
    Height is ignored. Top is not.

    Am I using the wrong tag here? How can I create a box within which my users can scroll through a table while additional elements remain always in view below it?

  2. #2
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I believe this is what you're looking for:

    Code:
    DisplayTableInAdmin {
      	position: absolute;
      	top:41px;
      	height:400px;
      	overflow: auto;
     }

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Temecula, CA
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes! That's it.

    Thanks.


Bookmarks

Posting Permissions

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