Semantic-UI Menu Fixed Variation
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 Menu is used to display the grouped navigation menu. A navigation menu is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic of their interest.
Semantic-UI Menu Fixed Variation is used to fix the position of menu items in respect of their content.
Semantic-UI Menu Fixed Variation Used Class:
- fixed: This class is used to fix the position of menu items.
Syntax:
<div class="ui top fixed menu">
...
</div>
Example 1: This example describes the uses of Semantic-UI Menu Fixed Variation.
HTML
<!DOCTYPE html>
< html >
< head >
< title >
Semantic-UI Menu Fixed Variation
</ title >
< link rel = "stylesheet" href =
</ head >
< body style = "min-height: 800px;" >
< div class = "ui container center aligned" >
< h2 style = "color:green; padding-top: 50px;" >
GeeksforGeeks
</ h2 >
< h3 >Semantic-UI Menu Fixed Variation</ h3 >
< div class = "ui top fixed menu" >
< a class = "item" >
< i class = "tag icon" ></ i >
GeeksforGeeks
</ a >
< a class = "item" >
< i class = "tasks icon" ></ i >
My Tasks
</ a >
< a class = "item" >
< i class = "phone icon" ></ i >
+91 98765643210
</ a >
< a class = "item" >
< i class = "envelope outline icon" ></ i >
Mail
</ a >
< a class = "item" >
< i class = "coffee icon" ></ i >
Coffee
</ a >
< a class = "item" >
< i class = "code icon" ></ i >
My Code
</ a >
</ div >
< div class = "ui bottom fixed menu" >
< a class = "item" >
< i class = "tag icon" ></ i >
GeeksforGeeks
</ a >
< a class = "item" >
< i class = "tasks icon" ></ i >
My Tasks
</ a >
< a class = "item" >
< i class = "phone icon" ></ i >
+91 98765643210
</ a >
< a class = "item" >
< i class = "envelope outline icon" ></ i >
Mail
</ a >
< a class = "item" >
< i class = "coffee icon" ></ i >
Coffee
</ a >
< a class = "item" >
< i class = "code icon" ></ i >
My Code
</ a >
</ div >
</ div >
</ body >
</ html >
|
Output:
Example 2: This example describes the uses of Semantic-UI Menu Fixed Variation.
HTML
<!DOCTYPE html>
< html >
< head >
< title >
Semantic-UI Menu Fixed Variation
</ title >
< link rel = "stylesheet" href =
</ head >
< body style = "min-height: 800px;" >
< div class = "ui container center aligned" >
< h2 style = "color:green; padding-top: 50px;" >
GeeksforGeeks
</ h2 >
< h3 >Semantic-UI Menu Fixed Variation</ h3 >
< div class = "ui left fixed vertical menu" >
< a class = "item" >
< i class = "tag icon" ></ i >
GeeksforGeeks
</ a >
< a class = "item" >
< i class = "tasks icon" ></ i >
My Tasks
</ a >
< a class = "item" >
< i class = "phone icon" ></ i >
+91 98765643210
</ a >
< a class = "item" >
< i class = "envelope outline icon" ></ i >
Mail
</ a >
< a class = "item" >
< i class = "coffee icon" ></ i >
Coffee
</ a >
< a class = "item" >
< i class = "code icon" ></ i >
My Code
</ a >
</ div >
< div class = "ui right fixed vertical menu" >
< a class = "item" >
< i class = "tag icon" ></ i >
GeeksforGeeks
</ a >
< a class = "item" >
< i class = "tasks icon" ></ i >
My Tasks
</ a >
< a class = "item" >
< i class = "phone icon" ></ i >
+91 98765643210
</ a >
< a class = "item" >
< i class = "envelope outline icon" ></ i >
Mail
</ a >
< a class = "item" >
< i class = "coffee icon" ></ i >
Coffee
</ a >
< a class = "item" >
< i class = "code icon" ></ i >
My Code
</ a >
</ div >
</ div >
</ body >
</ html >
|
Output:
Reference: https://semantic-ui.com/collections/menu.html#fixed
Last Updated :
05 Mar, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...