Skip to content
Related Articles

Related Articles

Semantic-UI Segment Types

Improve Article
Save Article
  • Last Updated : 29 Mar, 2022
Improve Article
Save Article

Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing.

Semantic UI has a bunch of components for user interface design. One of them is the Segments component. Segments are used to display different sections of relatable content. Depending on the requirements of the usage of segments there are different types of it.

Semantic UI Segment Types:

  • Segment: Basic segment displaying content.
  • Placeholder Segment: This class is used to display conditional content.
  • Raised: This class is used to elevate the segment.
  • Stacked: This class is used to show segments composed of multiple pages.
  • Piled: This class is used to make the segment look like a pile of pages.
  • Vertical Segment: This class is used to format segments vertically.

Syntax:

<div class="ui segment">
   ...
</div>

Example: The below example illustrates different types of segments.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <br/><br />
        <h2 class="ui header green">
            GeeksforGeeks
        </h2>
        <b>Semantic UI Segment Types</b>
        <hr>
  
        <div class="ui segment" style="width:700px;">
            <h3>Segment</h3>
            <p>
                GeeksforGeeks Courses - Interactive 
                LIVE & Self-Paced Courses. 
            </p>
        </div>
  
        <div class="ui raised segment" style="width:700px;">
            <h3>Raised Segment</h3>
            <p>
                Data Structures and Algorithms - Self Paced. 
                Most popular course on DSA trusted by over 
                6 ,000 students!
            </p>
        </div>
  
        <div class="ui piled segment" style="width:700px;">
            <h3>Piled Segment</h3>
            <p>
                Complete Interview Preparation - Self 
                Paced. A placement preparation pack 
                built with years of expertise.
            </p>
        </div>
        <div class="ui stacked segment" style="width:700px;">
            <h3>Stacked Segment</h3>
  
            <p>
                Amazon SDE Preparation Test Series. 
                A test series that will help you 
                prepare for coding interviews for 
                Amazon.
            </p>
        </div>
    </div>
</body>
  
</html>


Output:

Segment Types

Reference: https://semantic-ui.com/elements/segment.html


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!