Open In App

Bulma Tabs Alignment

Bulma is an open-source CSS framework that provides pre-built components which can be combined together to make responsive websites and web applications. In Bulma, we can align the list of the tabs in the center, right, and left. 

Bulma Tabs Alignment Classes:



Syntax:

<div class="tabs is-centered">
    ...
</div>

Example 1: In the example below, we used is-centered to make the position of tabs in the center.






<!DOCTYPE html>
<html>
 
<head>
    <title>Bulma Tabs Alignment</title>
    <link rel='stylesheet' href=
</head>
<body class="has-text-centered">
    <h2 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h2>
    <b>Bulma Tabs Alignment</b><br>
    <div class="tabs is-centered">
        <ul>
            <li class="is-active"><a>GFG</a></li>
            <li><a>Courses</a></li>
            <li><a>Practice</a></li>
            <li><a>Jobs</a></li>
        </ul>
    </div>
</body>
 
</html>

Output:

Bulma Center Tab Alignment

Example 2: In the example below, we used is-left to make the position of tabs in the left.




<!DOCTYPE html>
<html>
 
<head>
    <title>Bulma Tabs Alignment</title>
    <link rel='stylesheet' href=
</head>
<body>
    <h2 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h2>
    <b>Bulma Tabs Alignment</b><br>
    <div class="tabs is-left">
        <ul>
            <li class="is-active"><a>GFG</a></li>
            <li><a>Courses</a></li>
            <li><a>Practice</a></li>
            <li><a>Jobs</a></li>
        </ul>
    </div>
</body>
 
</html>

Output:

Bulma Tag Left Alignment

Example 3: In the example below, we used is-right to make the position of tabs in the right.




<!DOCTYPE html>
<html>
 
<head>
    <title>Bulma Tabs Alignment</title>
    <link rel='stylesheet' href=
</head>
<body class="has-text-centered">
    <h2 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h2>
    <b>Bulma Tabs Alignment</b><br>
     <div class="tabs is-right">
        <ul>
            <li class="is-active"><a>GFG</a></li>
            <li><a>Courses</a></li>
            <li><a>Practice</a></li>
            <li><a>Jobs</a></li>
        </ul>
    </div>
</body>
 
</html>

Output:

Bulma Tabs Right Alignment

Reference: https://bulma.io/documentation/components/tabs/


Article Tags :