Skip to content
Related Articles
Open in App
Not now

Related Articles

Semantic-UI Placeholder Line Length Variation

Improve Article
Save Article
  • Last Updated : 05 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 looks more amazing. In this article, we are going to learn about Placeholder Variations.

The Semantic-UI Placeholder is used to reserve the space for content that will soon appear in a webpage layout. the Semantic-UI Placeholder Line Length Variation is used to specify the length of content that will appear on the placeholder layout.

Semantic-UI Placeholder Line Length Variation Used Classes:

  • full: This class is used to display the full-length placeholder layout.
  • very long: This class is used to display the very long length placeholder layout.
  • long: This class is used to display the long-length placeholder layout.
  • medium: This class is used to display the medium-length placeholder layout.
  • short: This class is used to display the short-length placeholder layout.
  • very short: This class is used to display the very short-length placeholder layout.

Syntax:

<div class="ui placeholder">
      <div class="full"></div>
      ...
</div>

Example 1: In this example, we will create the header and paragraph layout of different lengths.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI Placeholder Line Length Variation
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container center aligned">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI Placeholder Line Length Variation</h3>
    </div>
  
    <div class="ui container placeholder">
        <div class="image header">
            <div class="full line"></div>
            <div class="long line"></div>
            <div class="medium line"></div>
        </div>
        <div class="paragraph">
            <div class="full line"></div>
            <div class="very long line"></div>
            <div class="long line"></div>
            <div class="medium line"></div>
            <div class="short line"></div>
            <div class="very short line"></div>
        </div>
    </div>
</body>
  
</html>


Output:

Example 2: In this example, we will create the header and paragraph layout of different lengths.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI Placeholder Line Length Variation
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container center aligned">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI Placeholder Line Length Variation</h3>
    </div>
  
    <div class="ui container placeholder">
        <div class="header">
            <div class="full line"></div>
            <div class="long line"></div>
            <div class="medium line"></div>
            <div class="full line"></div>
        </div>
        <div class="paragraph">
            <div class="long line"></div>
            <div class="medium line"></div>
            <div class="short line"></div>
            <div class="very short line"></div>
            <div class="full line"></div>
            <div class="very long line"></div>
        </div>
    </div>
</body>
  
</html>


Output:

Reference: https://semantic-ui.com/elements/placeholder.html#line-length


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!