Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

css flex overflow scroll

<!--Please give a thumbs up if this was helpfull-->

/*HTML*/
<div class="content">
    <div class="box">
        <div class="column">Column 1</div>
        <div class="column">Column 2</div>
        <div class="column">Column 3</div>
    </div>
</div>

/*CSS*/
.content {
    flex: 1;
    display: flex;
    overflow: auto;
}

.box {
    display: flex;
    min-height: min-content; /* needs vendor prefixes */
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #flex #overflow #scroll
ADD COMMENT
Topic
Name
9+2 =