Overflow
Adjust the overflow
attribute on the fly with four default values and classes. These classes are not responsive by default.
This is an example of using
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll. This is an example of using
.overflow-hidden
on an element with set width and height dimensions. This is an example of using
.overflow-visible
on an element with set width and height dimensions. This is an example of using
.overflow-scroll
on an element with set width and height dimensions. vue
<template>
<b-div display="md-flex">
<b-div
overflow="auto"
padding="3"
margin="b-3 b-md-0 e-md-3"
background-color="light"
style="max-width: 260px; max-height: 100px"
>
This is an example of using
<code>.overflow-auto</code>
on an element with set width and height dimensions. By design, this
content will vertically scroll.
</b-div>
<b-div
overflow="hidden"
padding="3"
margin="b-3 b-md-0 e-md-3"
background-color="light"
style="max-width: 260px; max-height: 100px"
>
This is an example of using
<code>.overflow-hidden</code>
on an element with set width and height dimensions.
</b-div>
<b-div
overflow="visible"
padding="3"
margin="b-3 b-md-0 e-md-3"
background-color="light"
style="max-width: 260px; max-height: 100px"
>
This is an example of using
<code>.overflow-visible</code>
on an element with set width and height dimensions.
</b-div>
<b-div
overflow="scroll"
padding="3"
margin="b-3 b-md-0 e-md-3"
background-color="light"
style="max-width: 260px; max-height: 100px"
>
This is an example of using
<code>.overflow-scroll</code>
on an element with set width and height dimensions.
</b-div>
</b-div>
</template>
overflow-x
Adjust the overflow-x
property to affect the overflow of content horizontally.
This is an example of using
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll. This is an example of using
.overflow-hidden
on an element with set width and height dimensions. This is an example of using
.overflow-visible
on an element with set width and height dimensions. This is an example of using
.overflow-scroll
on an element with set width and height dimensions. vue
<template>
<b-div class="overflow-x-auto">
...
</b-div>
<b-div class="overflow-x-hidden">
...
</b-div>
<b-div class="overflow-x-visible">
...
</b-div>
<b-div class="overflow-x-scroll">
...
</b-div>
</template>
overflow-y
Adjust the overflow-y
property to affect the overflow of content vertically.
This is an example of using
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll. This is an example of using
.overflow-hidden
on an element with set width and height dimensions. This is an example of using
.overflow-visible
on an element with set width and height dimensions. This is an example of using
.overflow-scroll
on an element with set width and height dimensions. vue
<template>
<b-div class="overflow-y-auto">
...
</b-div>
<b-div class="overflow-y-hidden">
...
</b-div>
<b-div class="overflow-y-visible">
...
</b-div>
<b-div class="overflow-y-scroll">
...
</b-div>
</template>