Open In App

Semantic-UI Button Variations Horizontal Attached

Semantic UI Button offers several type of micro button component like Types, Groups, Content, States, Variations and Group Variations.

The Button variations have different kind of buttons such as Social, Different Size, Floated, Colored, Compact, Toggle, Positive, Negative, Fluid, Circular, Vertically and Horizontally attached buttons. In this article we will learn about the Horizontally attached buttons. 



Semantic-UI Button Variations Horizontal Attached Class:

Syntax:



<button class="ui Horizontal-Attached-class button">Left</button>

Below example illustrate the Button Variations:

Example:




<!DOCTYPE html>
<html>
    <head>
        <title>Semantic UI</title>
        <link href=
        rel="stylesheet" />
    </head>
    <body>
        <center>
            <h1>Geeksforgeeks</h1>
            <strong>Semantic UI Button Variations Horizontally Attached</strong>
            <br><br>
            <div>
                <strong>Horizontally Attached:</strong>
                <button class="ui left attached
                               red button">
                    Left Hori Attached
                </button>
                <button class="ui right attached
                               green button">
                    Right Hori Attached
                </button>
            </div>
    </body>
</html>

Output

Semantic-UI Button Variations Horizontal Attached 

Reference: https://semantic-ui.com/elements/button.html#horizontally-attached


Article Tags :