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
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • jQuery
  • AngularJS
  • ReactJS
  • Next.js
  • React Native
  • NodeJS
  • Express.js
  • MongoDB
  • MERN Stack
  • PHP
  • WordPress
  • Bootstrap
  • Tailwind
  • CSS Frameworks
  • JS Frameworks
  • Web Development
Open In App
Next Article:
Create an Icon Bar using HTML and CSS
Next article icon

Create A Bottom Navigation Menu using HTML and CSS

Last Updated : 26 Dec, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

This article will show you how to create a bottom navigation menu using HTML and CSS. The navigation menu is an essential component in modern web design. It allows users to navigate through a website easily.

Here, we use HTML to create the structure of the Bottom Navigation menu, and CSS add styles to the elements.

Example 1: In this example, we will create a simple responsive bottom navigation menu.

HTML
<!DOCTYPE html> <html lang="en">  <head>     <meta charset="UTF-8">     <meta name="viewport" content=         "width=device-width, initial-scale=1.0">      <title>         Bottom Navigation with HTML and CSS     </title>      <link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">      <style>         body {             margin: 0;             font-family: 'Arial', sans-serif;         }          .container {             display: flex;             flex-direction: column;             min-height: 100vh;         }          .bottom-nav {             background-color: #4b8b01;             display: flex;             justify-content: space-around;             align-items: center;             position: fixed;             bottom: 0;             width: 100%;         }          .bottom-nav a {             color: #fff;             text-align: center;             padding: 14px 16px;             text-decoration: none;             font-size: 17px;         }          .bottom-nav a:hover {             background-color: #2a93d5;         }          @media screen and (max-width: 600px) {             .bottom-nav {                 flex-direction: column;                 align-items: stretch;             }              .bottom-nav a {                 flex: 1;             }         }     </style> </head>  <body>     <div class="container">         <nav class="bottom-nav">             <a href="#home">Home</a>             <a href="#courses">Courses</a>             <a href="#jobs">Jobs</a>             <a href="#news">News</a>             <a href="#contact">Contact</a>             <a href="#about">About</a>         </nav>     </div> </body>  </html> 

Output:

botton-nav-2

Example 2: In this example, we will create a bottom navigation menu with icons.

HTML
<!DOCTYPE html> <html lang="en">  <head>     <meta charset="UTF-8">     <meta name="viewport" content=         "width=device-width, initial-scale=1.0">          <title>         Bottom Navigation with Icons     </title>          <link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">      <style>         body {             margin: 0;             font-family: 'Arial', sans-serif;         }          .container {             display: flex;             flex-direction: column;             min-height: 100vh;         }          .bottom-nav {             background-color: #4b8b01;             display: flex;             justify-content: space-around;             align-items: center;             position: fixed;             bottom: 0;             width: 100%;         }          .bottom-nav a {             color: #fff;             text-align: center;             padding: 14px 16px;             text-decoration: none;             font-size: 17px;         }          .bottom-nav a:hover {             background-color: #2a93d5;         }          .bottom-nav a .icon {             margin-right: 8px;         }     </style> </head>  <body>     <div class="container">         <nav class="bottom-nav">             <a href="#home">                 <i class="fas fa-home icon"></i>Home             </a>             <a href="#courses">                 <i class="fas fa-graduation-cap icon"></i>Courses             </a>             <a href="#jobs">                 <i class="fas fa-briefcase icon"></i>Jobs             </a>             <a href="#news">                 <i class="fas fa-newspaper icon"></i>News             </a>             <a href="#contact">                 <i class="fas fa-envelope icon"></i>Contact             </a>             <a href="#about">                 <i class="fas fa-info-circle icon"></i>About             </a>         </nav>     </div> </body>  </html> 

Output:

botton-nav



Next Article
Create an Icon Bar using HTML and CSS

V

vkash8574
Improve
Article Tags :
  • Project
  • Web Technologies
  • Geeks Premier League
  • Web Templates
  • Geeks Premier League 2023

Similar Reads

  • How To Create a More Button in a Navigation Bar using CSS?
    Adding a More button in a navigation bar is used to handle overflow items when there is insufficient space to display all navigation links. We will explore how to implement a More button using CSS. ApproachCreate a web page structure using the <nav> element, which contains list items for each
    2 min read
  • Create an Icon Bar using HTML and CSS
    This article provides a complete idea of how to create an Icon Bar using HTML and CSS. HTML is used to design the structure, and CSS applies styles to the elements to make the user interface (UI) attractive. To add the Icons, we use the Font Awesome icons CDN link in the head section, and add the ic
    2 min read
  • How to create a mega menu using HTML and CSS ?
    HTML is a markup language used to create web pages and CSS is a stylesheet language used to design a document written in a markup language such as HTML. In this article, we are going to know how can we create a mega menu on our web page with the help of only HTML and CSS. Mega menus are a type of ex
    4 min read
  • How to create a Responsive Bottom Navigation Menu with CSS and JavaScript.
    A responsive bottom navigation menu provides mobile-friendly access to important links. We will see how to create a responsive bottom navigation menu that adjusts to different screen widths. The menu will include elements like Home, Contact, and About. When viewed on a smaller screen, a hamburger me
    2 min read
  • Create a Mobile Toggle Navigation Menu using HTML, CSS and JavaScript
    To create a Mobile Toggle Navigation Menu you need HTML, CSS, and JavaScript. If you want to attach the icons with the menu then you need a font-awesome CDN link. This article is divided into two sections: Creating Structure and Designing Structure. A glimpse of complete Navigation:  Creating Struct
    3 min read
  • Create a Search Bar using HTML and CSS
    Creating a search bar in HTML and CSS is simple and essential for enhancing user experience on your website. A search bar allows users to quickly find specific content, making it a common feature in website navigation menus. In this guide, we'll show you how to create a search bar in HTML. By follow
    3 min read
  • How to create Vertical Navigation Bar using HTML and CSS ?
    After reading this article, you will be able to build your own vertical navigation bar. To follow this article you only need some basic understanding of HTML and CSS. Let us start writing our vertical navigation bar, first, we will write the structure of the navigation bar. In this tutorial, we crea
    3 min read
  • Create a Curtain Menu using HTML and CSS
    This article will show you how to create a Curtain menu navbar effect with the help of HTML and CSS. The curtain menu means revealing or pulling down the menu items like a curtain. HTML is used to create the structure of the curtain menu and applies styles on that element to make like curtain menu e
    3 min read
  • How to create a top navigation bar using CSS?
    A top navigation bar is a horizontal bar that typically contains links to different sections of a website. It is a fundamental part of a website's layout and helps users navigate easily. In this article, we will explore different approaches to creating a top navigation bar using CSS. These are the f
    3 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
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