Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] CSS – Table question

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30316
    ynks4ever1
    Member

    Hi everyone. I have a table with 50 rows, these rows are populated dynamically from our database. The users only want to see 10 rows when the page first load and then use a scroll bar to view the other rows. Any help on how this could be accomplished will be greatly appreciated.
    Thanks, TJ

    #79300
    zackw
    Member

    my guess would be to set a height on the table at whatever 10 rows is and then set overflow to auto


    table {
    height:200px;
    overflow:auto;
    }

    just a guess though I never tested it and u will have to pick your own height

    #79216
    willB
    Member

    I had some time so I tested it, it doesn’t work in webkit browsers. but when I wrapped the table in a div and added those CSS settings it worked like a charm. Just figured you’d want to know.

    #79199
    zackw
    Member

    :)

    #79141
    ynks4ever1
    Member

    Thank you guys

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.