Menu
How do I make an menu?
What is a menu? How do you make a menu? This script and codes were developed by Mojtaba Seyedi on 27 July 2022, Wednesday.
Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background-color: #0a68bb; background-image: url('http://mojoimage.com/free-image-hosting-12/5335bg.jpg'); background-size : cover;
}
nav { margin : 50px auto; width : 290px;
}
menu { border-radius : 3px;
}
menu:after , menu:before { display : block; content : ' ';
}
menu:after { clear : both;
}
li { list-style-type : none; background : linear-gradient(rgba(220,220,255,0.4) 85%, rgba(255,255,255,0.5) 100%); float : left; cursor : pointer; padding : 3px 10px; border-top : 2px solid rgba(200,200,255,0.5); border-bottom : 2px solid rgba(50,50,50,0.4);
}
li:first-child { border-radius : 5px 0 0 5px;
}
li:last-child { border-radius : 0 5px 5px 0;
}
a { display : block; padding : 10px 13px; font-size : 26px; text-decoration : none; border-radius : 5px; position : relative; top : 0; color : #FFF; transition : all .4s;
}
li:hover a { top : -20px; color : #4eacff; background-color: #fff; box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7); transition : all .4s;
}
li a:after { display : block; content : ''; position : absolute; top : 100%; left : 42%; border-style : solid; border-color : transparent; border-width : 5px 5px 0 5px; transition : all .4s;
}
li:hover a:after { border-color : white transparent transparent transparent; transition : all .4s;
}
/*************************************/
.menu2 { width : 350px;
}
.menu2 a { font-family : georgia; font-size : 14px; font-style : italic; text-transform : capitalize;
}
.menu2 li { border-right : 1px solid rgba(200,200,255,0.5); border-left : 1px solid rgba(40,40,40,0.2);
}
.selected { top : -20px; color : #4eacff; background-color: #fff; box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7); transition : all .4s;
}
.selected:after { border-color : white transparent transparent transparent; transition : all .4s;
}
a.fun { display : none;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav> <menu> <li><a href="#">☀</a></li> <li><a href="#">✈</a></li> <li><a href="#">❄</a></li> <li><a href="#">☎</a></li> </menu>
</nav>
<nav class="menu2"> <menu> <li><a href="#">home</a></li> <li><a href="#">about</a></li> <li><a href="#" class="selected">contact</a></li> <li><a href="#">blog</a></li> </menu>
</nav>
<a class="fun" href="http://info.flagcounter.com/YXv0"><img src="http://s03.flagcounter.com/count/YXv0/bg_FFFFFF/txt_000000/border_CCCCCC/columns_8/maxflags_250/viewers_0/labels_1/pageviews_1/flags_1/" alt="Flag Counter" border="0"></a>
</body>
</html>
Menu - Script Codes CSS Codes
body { background-color: #0a68bb; background-image: url('http://mojoimage.com/free-image-hosting-12/5335bg.jpg'); background-size : cover;
}
nav { margin : 50px auto; width : 290px;
}
menu { border-radius : 3px;
}
menu:after , menu:before { display : block; content : ' ';
}
menu:after { clear : both;
}
li { list-style-type : none; background : linear-gradient(rgba(220,220,255,0.4) 85%, rgba(255,255,255,0.5) 100%); float : left; cursor : pointer; padding : 3px 10px; border-top : 2px solid rgba(200,200,255,0.5); border-bottom : 2px solid rgba(50,50,50,0.4);
}
li:first-child { border-radius : 5px 0 0 5px;
}
li:last-child { border-radius : 0 5px 5px 0;
}
a { display : block; padding : 10px 13px; font-size : 26px; text-decoration : none; border-radius : 5px; position : relative; top : 0; color : #FFF; transition : all .4s;
}
li:hover a { top : -20px; color : #4eacff; background-color: #fff; box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7); transition : all .4s;
}
li a:after { display : block; content : ''; position : absolute; top : 100%; left : 42%; border-style : solid; border-color : transparent; border-width : 5px 5px 0 5px; transition : all .4s;
}
li:hover a:after { border-color : white transparent transparent transparent; transition : all .4s;
}
/*************************************/
.menu2 { width : 350px;
}
.menu2 a { font-family : georgia; font-size : 14px; font-style : italic; text-transform : capitalize;
}
.menu2 li { border-right : 1px solid rgba(200,200,255,0.5); border-left : 1px solid rgba(40,40,40,0.2);
}
.selected { top : -20px; color : #4eacff; background-color: #fff; box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7); transition : all .4s;
}
.selected:after { border-color : white transparent transparent transparent; transition : all .4s;
}
a.fun { display : none;
}
Developer | Mojtaba Seyedi |
Username | seyedi |
Uploaded | July 27, 2022 |
Rating | 4.5 |
Size | 3,077 Kb |
Views | 52,624 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Button | 3,688 Kb |
Animated Cover | 3,576 Kb |
Animated Covers | 5,083 Kb |
Steering menu | 2,806 Kb |
Circular Menu | 2,480 Kb |
Flat Navigation | 2,707 Kb |
Covering Bad | 3,891 Kb |
Bell alert | 1,980 Kb |
Hidden navigation | 4,330 Kb |
Funny toggle switch | 2,896 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Button Option Group | Honchoman | 1,859 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
JQuery AJAX reddit Exercise | Btholt | 1,777 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Nice responsive team page | Infomiho | 3,139 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
AngularJS Animated Todo List | Ehaase | 2,975 Kb |
Responsive Table-less Shopping Cart | Alex_rodrigues | 6,637 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!