mydb mydb - 3 months ago 6
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

Place your table inside the following div.

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