Chunky Nav buttons, centered, no floats

Developer
Size
2,456 Kb
Views
34,408

How do I make an chunky nav buttons, centered, no floats?

I had to make this the other day. I thought that it might be helpful for anyone that had to make a top-level nav with chunky buttons that extended outside of it's parent element. . What is a chunky nav buttons, centered, no floats? How do you make a chunky nav buttons, centered, no floats? This script and codes were developed by BROWNERD on 29 August 2022, Monday.

Chunky Nav buttons, centered, no floats Previews

Chunky Nav buttons, centered, no floats - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Chunky Nav buttons, centered, no floats</title> <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:#ccc; font-family:"Trebuchet MS"; letter-spacing:.1em; margin:5em; text-transform:uppercase; }
nav {	text-align: center;	font-size: 1.25em; }
nav ul { border-radius: .25em; background: white; list-style:none; text-align: center; }
nav li { position:relative; display:inline-block; border-bottom: none; border-radius: .25em .25em 0 0; }
nav li:hover { box-shadow: 0 -5px 0 #f47321; }
nav a { color:#f47321; display:block; padding: .5em; text-decoration:none; }
nav a:hover { border-radius: 0 0 .25em .25em; background: #f47321; box-shadow: 0 5px 0 #dc6519; color:white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); }
/*Highlight Home button
-----------------------------------------------*/
.home { box-shadow: 0 -5px 0 #f47321; }
.home a {	background: #f47321;	box-shadow: 0 5px 0 #dc6519;	color:white;	border-radius: 0 0 .25em .25em;	text-shadow: 0 -1px 0 rgba(0,0,0,0.3); } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<nav> <ul> <li class="home"><a href="#"><i class="fa fa-home"></i></a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Contact</a></li> </ul>
</nav>
</body>
</html>

Chunky Nav buttons, centered, no floats - Script Codes CSS Codes

body { background:#ccc; font-family:"Trebuchet MS"; letter-spacing:.1em; margin:5em; text-transform:uppercase; }
nav {	text-align: center;	font-size: 1.25em; }
nav ul { border-radius: .25em; background: white; list-style:none; text-align: center; }
nav li { position:relative; display:inline-block; border-bottom: none; border-radius: .25em .25em 0 0; }
nav li:hover { box-shadow: 0 -5px 0 #f47321; }
nav a { color:#f47321; display:block; padding: .5em; text-decoration:none; }
nav a:hover { border-radius: 0 0 .25em .25em; background: #f47321; box-shadow: 0 5px 0 #dc6519; color:white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); }
/*Highlight Home button
-----------------------------------------------*/
.home { box-shadow: 0 -5px 0 #f47321; }
.home a {	background: #f47321;	box-shadow: 0 5px 0 #dc6519;	color:white;	border-radius: 0 0 .25em .25em;	text-shadow: 0 -1px 0 rgba(0,0,0,0.3); }
Chunky Nav buttons, centered, no floats - Script Codes
Chunky Nav buttons, centered, no floats - Script Codes
Home Page Home
Developer BROWNERD
Username brownerd
Uploaded August 29, 2022
Rating 4.5
Size 2,456 Kb
Views 34,408
Do you need developer help for Chunky Nav buttons, centered, no floats?

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!

BROWNERD (brownerd) Script Codes
Create amazing blog posts 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!