Vertical Scroll

CSS – How Can I Add a Vertical Scroll in Html Table

.columns {
    border: 1px solid gray;
    margin: 10px 0px 10px 10px;
    float:left;
    padding: 0px;
    font-size: 20px;
    overflow: auto; /* add this*/
}

Overflow auto will give you a scroll bar if the content of your div dose not fit.

And if you want the header to stay in place when you scroll you need to give it positionfixed;

LEAVE A REPLY

Please enter your comment!
Please enter your name here