Menu

Size
3,077 Kb
Views
52,624

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 Previews

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;
}
Menu - Script Codes
Menu - Script Codes
Home Page Home
Developer Mojtaba Seyedi
Username seyedi
Uploaded July 27, 2022
Rating 4.5
Size 3,077 Kb
Views 52,624
Do you need developer help for Menu?

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!

Mojtaba Seyedi (seyedi) Script Codes
Create amazing captions with AI!

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!