Open In App

Semantic-UI Menu Borderless Variation

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. It uses a class to add CSS to the elements.

Menu is an excellent way to group items that navigate to various pages. The menu is an essential part of every website as it helps us navigate through various web pages. Semantic UI provides us with a custom-styled Menu. We can make the items in the menu borderless in Semantic UI using the borderless class.

Semantic UI Menu Borderless Variation Classes:

  • borderless: Removes the border from the menu items.

Syntax:

<div class="ui borderless menu">
  <a class="item">Item Name</a>
  ...
</div>

Example 1: In the below example, we have created a standard borderless menu.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Semantic UI Menu Borderless Variation</title>
    <link href=
          rel="stylesheet" />
    <script src=
            integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" 
            crossorigin="anonymous">
        </script>
    <script src=
    </script>
</head>
  
<body style="width: 100vw; height: 100vh;">
  
    <div class="ui container">
        <h2 style="color: green;">GeeksForGeeks</h2>
        <h4>Semantic UI Menu Borderless Variation</h4>
        <hr>
        <br />
        <div class="ui borderless menu">
            <a class="item">Home</a>
            <a class="item">About</a>
            <a class="item">Profile</a>
            <a class="item">Learn</a>
        </div>
    </div>
</body>
</html>


Output:

Semantic-UI Menu Borderless Variation

Semantic-UI Menu Borderless Variation

Example 2: In the below example, we have created a borderless vertical menu.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Semantic UI Menu Borderless Variation</title>
    <link href=
          rel="stylesheet" />
  
    <script src=
            integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" 
            crossorigin="anonymous">
    </script>
  
    <script src=
    </script>
</head>
  
<body style="width: 100vw; height: 100vh;">
  
    <div class="ui container">
        <h2 style="color: green;">GeeksForGeeks</h2>
        <h4>Semantic UI Menu Borderless Variation</h4>
        <hr>
        <br />
        <div class="ui vertical borderless menu">
            <a class="item">Home</a>
            <a class="item">About</a>
            <a class="item">Profile</a>
            <a class="item">Learn</a>
        </div>
    </div>
</body>
  
</html>


Output:

Semantic-UI Menu Borderless Variation

Vertical Borderless Menu

Reference: https://semantic-ui.com/collections/menu.html#borderless



Last Updated : 10 Mar, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads