Open In App

Spectre Shapes

Spectre Shapes are used to create different shapes for HTML elements. This is one of the most useful utilities in Spectre. To change any element’s shape, you just need to include this class. 

Spectre Shapes class:



Syntax:

<div class="s-rounded">
   ....
</div>

Example: Below example illustrate the Spectre Shapes using both the above classes.






<!DOCTYPE html>
<html>
  
<head>
    <title>SPECTRE Shape Class</title>
    <link rel="stylesheet"
        href=
    <link rel="stylesheet"
        href=
    <link rel="stylesheet"
        href=
    <style>
        div {
            height: 100px;
            width: 100px;
        }
    </style>
</head>
  
<body>
    <center>
        <h1 class="text-success">GeeksforGeeks</h1>
        <strong>SPECTRE Shape Class</strong>
        <br>
        <div class="bg-success s-circle">Circular</div>
        <div class="bg-success s-rounded">Rounded</div>
    </center>
</body>
</html>

Output:

Spectre Shapes

Reference: https://picturepan2.github.io/spectre/utilities/shapes.html


Article Tags :