Open In App

Semantic-UI Button Variations Horizontal Attached

Last Updated : 08 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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:

  • left attached: This class is used to attached the button to the left of other content.
  • right attached: This class is used to attached the button to the right of other content.

Syntax:

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

Below example illustrate the Button Variations:

Example:

HTML




<!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

Semantic-UI Button Variations Horizontal Attached 

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



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads