Simple Horizontal Navigation Menu with HTML and CSS

In this tutorial we will see how to make a Simple Horizontal Navigation Menu with HTML and CSS. This menu has hover effect as well, simple HTML and CSS is used for this purpose, complete code is given.

HTML Code

Take a look at the HTML code given below.

<!DOCTYPE html>
<html lang="en">
<head>
<title>Cool Simple CSS Menu</title>
<link rel="stylesheet" href="menu.css">
</head>             
<body>
    <ul class="menu">
        <li>Menu</li>
        <li><a href="#">&#x2708;</a></li>
        <li><a href="#">&#x266b;</a></li>
        <li><a href="#">&#x2709;</a></li>
    </ul>
</body>
</html>

CSS Code

CSS code is given below.

<style>
*
{
    margin: 0;
    padding: 0;
    font-family: monospace;
}
body
{
    padding: 10px;
}
.menu
{
    background-color: #22438C;
    width: 60px;
    padding: 0px 10px;
    line-height: 50px;
    overflow: hidden;
    color: #eee;
    border-radius: 25px;
    display: flex;
    transition: all .5s ease;
    cursor: pointer;
    box-shadow: 0px 0px 4px #000;
}
.menu li
{
    font-size: 18px;
    display: inline-block;
    padding: 0px 10px;
    margin: 0 auto;
}
.menu li a 
{
    text-decoration: none;
    color: #eee;
}
.menu:hover
{
    width: 300px;
}
</style>           

Video Tutorial

Watch our video tutorial on How To Create Simple Navigation Menu with HTML and CSS with hover effect.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript