In this article, we will be learning about flex-wrap property in Bulma. In Bulma, the flex-wrap property is used as a helper. The flex-wrap property in Bulma allows the user to wrap the flex items either into a single line or wrapped onto multiple lines in a container. There are three classes available in Bulma that are used to wrap the flex items.
Bulma Flex Wrap Classes:
- is-flex-wrap-nowrap: This class of flex-wrap is a default class in which the flex item is wrapped in the container.
- is-flex-wrap-wrap: This class of flex-wrap is used to wrap flexible items.
- is-flex-wrap-wrap-reverse: This class of flex-wrap is used to wrap flexible items in reverse order.
Syntax:
<div class="columns Flex-Wrap-Class>
....
</div>
Example 1: Below examples illustrates the Bulma is-flex-wrap-wrap property.
HTML
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" />
< meta http-equiv = "X-UA-Compatible"
content = "IE=edge" />
< meta name = "viewport"
content = "width=device-width, initial-scale=1.0" />
< link
rel = "stylesheet"
href =
/>
</ head >
< body >
< h2 class = "is-size-2 has-text-success" >
GeeksforGeeks
</ h2 >
< b >Bulma Flex Wrap</ b >< br >< br >
< div class = "container" >
< div class = "p-4 columns is-flex-wrap-wrap has-background-primary" >
< div class = "p-2 box has-background-light" >Flex item 1</ div >
< div class = "p-2 box has-background-light" >Flex item 2</ div >
< div class = "p-2 box has-background-light" >Flex item 3</ div >
< div class = "p-2 box has-background-light" >Flex item 4</ div >
< div class = "p-2 box has-background-light" >Flex item 5</ div >
< div class = "p-2 box has-background-light" >Flex item 6</ div >
< div class = "p-2 box has-background-light" >Flex item 7</ div >
< div class = "p-2 box has-background-light" >Flex item 8</ div >
< div class = "p-2 box has-background-light" >Flex item 9</ div >
</ div >
</ div >
</ body >
</ html >
|
Output:

Bulma Flex Wrap
Example 2: Below examples illustrate the Bulma is-flex-wrap-wrap-reverse property.
HTML
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" />
< meta http-equiv = "X-UA-Compatible"
content = "IE=edge" />
< meta name = "viewport"
content = "width=device-width, initial-scale=1.0" />
< link
rel = "stylesheet"
href =
/>
</ head >
< body >
< h2 class = "is-size-2 has-text-success" >
GeeksforGeeks
</ h2 >
< b >Bulma Flex Wrap</ b >< br >< br >
< div class = "container" >
< div class="p-4 columns
is-flex-wrap-wrap-reverse
has-background-primary">
< div class = "p-2 box has-background-light" >Flex item 1</ div >
< div class = "p-2 box has-background-light" >Flex item 2</ div >
< div class = "p-2 box has-background-light" >Flex item 3</ div >
< div class = "p-2 box has-background-light" >Flex item 4</ div >
< div class = "p-2 box has-background-light" >Flex item 5</ div >
< div class = "p-2 box has-background-light" >Flex item 6</ div >
< div class = "p-2 box has-background-light" >Flex item 7</ div >
< div class = "p-2 box has-background-light" >Flex item 8</ div >
< div class = "p-2 box has-background-light" >Flex item 9</ div >
</ div >
</ div >
</ body >
</ html >
|
Output:

Bulma Flex Wrap
Example 3: Below examples illustrate the Bulma is-flex-wrap-nowrap property.
HTML
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" />
< meta http-equiv = "X-UA-Compatible"
content = "IE=edge" />
< meta name = "viewport"
content = "width=device-width, initial-scale=1.0" />
< link
rel = "stylesheet"
href =
/>
</ head >
< body >
< h2 class = "is-size-2 has-text-success" >
GeeksforGeeks
</ h2 >
< b >Bulma Flex Wrap</ b >< br >< br >
< div class = "container" >
< div class="p-4 columns
is-flex-wrap-nowrap
has-background-primary">
< div class = "p-2 box has-background-light" >Flex item 1</ div >
< div class = "p-2 box has-background-light" >Flex item 2</ div >
< div class = "p-2 box has-background-light" >Flex item 3</ div >
< div class = "p-2 box has-background-light" >Flex item 4</ div >
< div class = "p-2 box has-background-light" >Flex item 5</ div >
< div class = "p-2 box has-background-light" >Flex item 6</ div >
< div class = "p-2 box has-background-light" >Flex item 7</ div >
< div class = "p-2 box has-background-light" >Flex item 8</ div >
< div class = "p-2 box has-background-light" >Flex item 9</ div >
</ div >
</ div >
</ body >
</ html >
|
Output:

Bulma Flex Wrap
Reference: https://bulma.io/documentation/helpers/flexbox-helpers/#flex-wrap
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
02 Feb, 2022
Like Article
Save Article