Tabbed Navigation

Size
2,606 Kb
Views
12,144

How do I make an tabbed navigation?

What is a tabbed navigation? How do you make a tabbed navigation? This script and codes were developed by Peter Appleyard on 06 October 2022, Thursday.

Tabbed Navigation Previews

Tabbed Navigation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tabbed Navigation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="topBar"></div>
<nav class="mainNav"> <ul> <li><a class="first" href="#">Legal Services</a></li> <li><a class="second" href="#">Testimonials</a></li> <li><a class="third selected" href="#">About Us</a></li> <li><a class="fourth" href="#">Blog</a></li> <li><a class="fifth" href="#">Contact Us</a></li> </ul>
</nav> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Tabbed Navigation - Script Codes CSS Codes

body { margin: 0; padding: 0; position: relative;
}
.topBar { background-color: #3b7cca; width: 100%; height: 50px; position: relative; z-index: 100;
}
.mainNav { position: relative;
}
.mainNav ul { margin: -2px 0 0 50px; padding: 0;
}
.mainNav ul li { list-style-type: none; display: block; float: left;
}
.mainNav ul li a { padding: 80px 25px 15px 25px; background-color: #3b7cca; display: block; position: relative; -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); text-decoration: none; margin-left: -2px; z-index: 20; color: #FFF;
}
.mainNav ul li a:hover { background-color: #2d64a5;
}
.mainNav ul li a.second { background-color: #6a92d3;
}
.mainNav ul li a.second:hover { background-color: #4375c7;
}
.mainNav ul li a.fourth { background-color: #8ea9dd;
}
.mainNav ul li a.fourth:hover { background-color: #678bd1;
}
.mainNav ul li a.fifth { background-color: #6a92d3;
}
.mainNav ul li a.fifth:hover { background-color: #4375c7;
}
.mainNav ul li a.selected { padding-top: 90px; z-index: 30;
}

Tabbed Navigation - Script Codes JS Codes

//selected on click
$( "a" ).click(function() { $("a").removeClass( "selected" ); $( this ).toggleClass( "selected" );
});
Tabbed Navigation - Script Codes
Tabbed Navigation - Script Codes
Home Page Home
Developer Peter Appleyard
Username whodaman
Uploaded October 06, 2022
Rating 3
Size 2,606 Kb
Views 12,144
Do you need developer help for Tabbed Navigation?

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!

Peter Appleyard (whodaman) Script Codes
Create amazing love letters 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!