mydb mydb - 1 year ago 69
HTML Question

Show only three Element in Table

Is it possible to show only three rows of an HTML table?

The other elements will be visible as you scroll a scrollbar.

Answer Source

Place your table inside the following div.

div {
    width: 150px;
    height: 150px; /*make this as the height for 3 rows*/
    overflow: scroll;
}