Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • CSS Tutorial
  • CSS Exercises
  • CSS Interview Questions
  • CSS Selectors
  • CSS Properties
  • CSS Functions
  • CSS Examples
  • CSS Cheat Sheet
  • CSS Templates
  • CSS Frameworks
  • Bootstrap
  • Tailwind
  • CSS Formatter
Open In App
Next Article:
How to create and use CSS Image Sprites ?
Next article icon

How to create Radial Menu in CSS ?

Last Updated : 01 May, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

There are so many ways to create a radial menu by using the CSS property. The font icon, letters, and or image are used in the radial menu. That radial button can be linked with the sites. Set the position, height, and width of a radial button by using CSS. There is another approach using JavaScript to create a radial menu. 

Example 1: This example uses CSS property to create a radial menu. 

html
<!DOCTYPE html> <html>      <head>     <title>         Creating Radial Menu     </title>          <!-- CSS style to create radial menu -->     <style>              /* Set the style of div */         div {             display:inline-block;             height:200px;             width:200px;             background:#d1d1d1;             border-radius:30%;             position:relative;             overflow:hidden;             border:2px solid black;         }         div:before {             content:"";             position:absolute;             height:60%;             width:60%;             border-radius:40%;             background:white;             top:20%;             left:20%;             z-index:8;         }         div a {             position:absolute;             padding:40px;             background:blue;             padding-bottom:50px;         }                  /* Set the position of button */         div a:nth-child(1){             bottom:-10%;             left:50%;             transform:translateX(-50%);         }                  /* Set the position of button */         div a:nth-child(2){             bottom:28%;             left:10%;             transform:translateX(-50%) rotate(90deg);         }                  /* Set the position of button */         div a:nth-child(3){             bottom:28%;             left:90%;             transform:translateX(-50%) rotate(-90deg);         }                  /* Set the position of button */         div a:nth-child(4) {             bottom:60%;             left:50%;             transform:translateX(-50%);         }                  /* Set style when mouse move over */         div a:hover {             background:green;     </style> </head>  <!-- body part of document --> <body>     <h1 style="color:Green;">         GeeksforGeeks     </h1>          <div>         <a href="#"></a>         <a href="#"></a>         <a href="#"></a>         <a href="#"></a>     </div> </body>  </html>                                      

Output: 

Example 2: This example uses font icons and CSS property to create radial menu. 

html
<!DOCTYPE html> <html>      <head>     <title>         Creating Radial Menu     </title>          <link rel="stylesheet" href= "https://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">           <!-- CSS style to create radial menu -->     <style>         #check {              display: none;         }                  /* Set the icon width, height and position */         .main,.icons {             margin: auto;             position:absolute;             top: 0;             right: 0;             bottom: 0;             left: 0;             width: 50px;             height: 50px;             border-radius: 40%;         }                  /* Set the style of menu button */         .main {             background-color: gray;             cursor: pointer;             z-index: 50;         }                  /* Set the position, height and              width of menu button */         .main .title {             margin: auto;             position: absolute;             top: 0;             right: 0;             bottom: 0;             left: 0;             width: 100%;             height: 80px;             font-size: 16px;             line-height: 80px;             text-align: center;             color: lime;         }                  /* Set position, height and width              of buttons */         .button {             margin: auto;             position: absolute;             top: 0;             right: 0;             bottom: 0;             left: 0;             width: 45px;             height: 45px;             border-radius: 40%;             transition: all 0.4s ease-in;         }         .button i {             width: 100%;             font-size: 20px;             line-height: 50px;             text-align: center;             color: white;         }         .main {             border:2px solid lime;         }         .button {             border:2px solid black;         }                  /* Positioning of buttons */         #check:checked ~ .main + .icons .button {             opacity:0.8;         }         #check:checked ~ .main + .icons .button:nth-of-type(1) {             top: -100%;             left: -480%;             background-color: green;             transition-delay:0.6s;         }         #check:checked ~ .main + .icons .button:nth-of-type(2) {             top: -230%;             left: -250%;             background-color: green;             transition-delay:0.4s;         }         #check:checked ~ .main + .icons .button:nth-of-type(3) {             top: -280%;             background-color: green;             transition-delay:0.2s;         }         #check:checked ~ .main + .icons .button:nth-of-type(4) {             top: -230%;             right: -250%;             background-color: green;             transition-delay:0.4s;         }         #check:checked ~ .main + .icons .button:nth-of-type(5) {             top: -100%;             right: -480%;             background-color: green;             transition-delay:0.6s;         }     </style> </head>  <body>     <input id="check" type="checkbox">          <label class="main" for="check">         <div class="title">             <i class="fa fa-bars"></i>         </div>     </label>          <!--Buttons that link with the other pages -->     <div class="icons">         <a class="button" href="#" >             <i class="fa fa-youtube"></i>         </a>         <a class="button" href="#" >             <i class="fa fa-facebook"></i>         </a>         <a class="button" href="h#">             <i class="fa fa-linkedin"></i>         </a>         <a class="button" href="#">             <i class="fa fa-github"></i>         </a>         <a class="button" href="#">             <i class="fa fa-google-plus"></i>         </a>     </div> </body>  </html>                                     

Output: 


Next Article
How to create and use CSS Image Sprites ?

S

Sabya_Samadder
Improve
Article Tags :
  • Web Technologies
  • CSS
  • CSS-Misc

Similar Reads

  • How to Create A Nested Menus in Tailwind CSS?
    TailwindCSS allows designers to create highly customizable and visually appealing interfaces using utility-first classes. With its extensive set of utilities, you can build nested menus that are both responsive and stylish. Tailwind's flexible styling options make it easy to design complex, nested m
    6 min read
  • How to create a Menu Icon using CSS ?
    The Menu Icon is mostly used on smaller screens, there's limited space to display a full navigation menu. A menu icon helps in hiding the navigation items initially and revealing them when the user needs them. In this article, we will see how To Create a Menu Icon using CSS. There are many ways to c
    3 min read
  • How to Create Nested Sub Menu using CSS ?
    CSS Nested Sub-Menus refers to Dropdown Menus that are contained within another dropdown menu. These are commonly used in navigation menus to organize and structure content hierarchically. In this article, we are going to build a nested sub-menu using CSS, it will consist of a nav bar with various l
    3 min read
  • How to create and use CSS Image Sprites ?
    In this article, we are going to learn how we can how to create and use CSS Image Sprites. CSS Image Sprites are nothing but a way to reduce the HTTP requests from the image resources. A CSS Image Sprite is a single image file containing all images on a document page. Image sprites are advantageous
    3 min read
  • How to Create Scrollable Horizontal Menu using CSS?
    The scrollable horizontal menu is suitable for various screen sizes. To create a scrollable horizontal menu using CSS, you can make use of the overflow property on a container. Syntax white-space: nowrapoverflow: auto;[GFGTABS] HTML <!DOCTYPE html> <html> <head> <style> div.s
    1 min read
  • How to create Vertical Menu using HTML and CSS ?
    In This article, we will learn how to create vertical menus by using HTML and CSS. Vertical Menu: We can create a vertical menu in the form of buttons and a scrollable menu. Vertical Menu is the buttons arranged in the vertical menu bar/navbar. How to create a vertical menu using buttons: We can cre
    2 min read
  • How To Create A Dropup Menu Using CSS?
    A Dropup menu is a type of menu in web design that expands upwards from its trigger element instead of the traditional dropdown direction. Dropup menus are often used in contexts such as navigation bars, form selections, and interactive elements. Below are the approaches used for creating the dropup
    6 min read
  • How to create Right Aligned Menu Links using HTML and CSS ?
    The right-aligned menu links are used on many websites. Like hotels website that contains lots of options in the menu section but in case of emergency to make contact with them need specific attention. In that case, you can put all the menu options on the left side of the navigation bar and display
    3 min read
  • How to create a Pills navigation menu in Bootstrap?
    In this article, we will learn how to make a Pills navigation menu in Bootstrap 5. Pills are a great navigation style to implement for your websites as it enhances the user experience and navigation flow of your website. Creating a pills navigation menu is simple and easy, all you have to do is to i
    8 min read
  • How to Create a Ribbon using CSS?
    In this article, we will learn how to create a ribbon using CSS. PrerequisitesHTMLCSSApproachThe structure consists of a <button> element with the class "btn" containing the text "GFG DSA Course". Inside the button, there is an <span> element with the class "ribbon" containing the text "
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences