Open In App

Semantic-UI Placeholder Inverted Variation

Last Updated : 22 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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. 

In this article, we are going to learn about Placeholder Inverted Variation. It is equipped with pre-built semantic components that help create responsive layouts using user-friendly HTML, and it uses predefined CSS and jQuery to incorporate different frameworks. A placeholder is used to reserve space for content that soon will appear in a layout and inverted variation placeholders can have their colors inverted.

Semantic-UI Placeholder Inverted Variation Class:

  • inverted: This class is used to make the input inverted(color-wise).

Syntax:

<div class="ui inverted segment">
     <div class="ui active inverted placeholder">
         ...  
     </div>
</div>

The below example illustrates the Semantic-UI Placeholder Inverted Variation:

Example 1: The below example illustrates the Semantic UI placeholder Inverted Variation.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <link href=
         rel="stylesheet" />
</head>
  
<body>
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
          
        <strong> Semantic-UI </strong>
        <h3 class="ui dividing header">
            Placeholder Inverted Variation
        </h3>
    </center>
  
    <div class="ui inverted segment">
        <div class="ui active inverted placeholder">
            <div class="image header">
                <div class="line"></div>
                <div class="line"></div>
            </div>
            <div class="paragraph">
                <div class="line"></div>
                <div class="line"></div>
                <div class="line"></div>
            </div>
        </div>
    </div>
</body>
  
</html>


Output:

Example 2:  The below example illustrates the Semantic UI placeholder Inverted Variation.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <link href=
         rel="stylesheet" />
</head>
  
<body>
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
          
        <strong> Semantic-UI </strong>
        <h3 class="ui dividing header">
            Placeholder Inverted Variation
        </h3>
    </center>
  
    <div class="ui inverted segment">
        <div class="ui active inverted placeholder">
            <div class="image header">
            </div>
            <div class="paragraph">
                <div class="line"></div>
                <div class="line"></div>
            </div>
        </div>
    </div>
    <div class="ui inverted segment">
        <div class="ui active inverted placeholder">
            <div class="image header">
            </div>
            <div class="paragraph">
                <div class="line"></div>
                <div class="line"></div>
            </div>
        </div>
    </div>
</body>
  
</html>


Output:

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



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads