Tab

Size
2,563 Kb
Views
8,096

How do I make an tab?

What is a tab? How do you make a tab? This script and codes were developed by Mohammed Fawzy on 26 January 2023, Thursday.

Tab Previews

Tab - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>tab</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="information"> <div class="container"> <h2 class="h1 text-center">Product Information</h2> <ul class="list-unstyled info-list"> <li class="res-p active" data-class="about">About</li> <li class="res-p" data-class="histroy">Histroy</li> <li class="res-p" data-class="spec">Specification</li> <li class="res-p" data-class="tech">Technical</li> <li class="res-p" data-class="review">Review</li> </ul> <div class="info-content"> <div class="about"> <p class="res-p">About Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <div class="histroy"> <p class="res-p">History Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <div class="spec"> <p class="res-p">Spec Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <div class="tech"> <p class="res-p">Tech Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <div class="review"> <p class="res-p">Review Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> </div> </div> </section> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Tab - Script Codes CSS Codes

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
body { font-family: "Droid Serif", serif; }
.information { background: #ecf0f1; padding-top: 30px; padding-bottom: 40px; } .information .h1 { color: #7f8c8d; font-size: 50px; } .information .res-p { color: #848484; } .information .info-list li { display: inline-block; background: #DDD; padding: 15px; cursor: pointer; transition: 0.3s all ease-out; } .information li.active { background: #FFF; color: #22a9bd; font-weight: bold; text-shadow: 1px 1px #CCC; border-radius: 7px; border: 3px solid #CCC; } .information .info-content { margin-bottom: 30px; border-radius: 10px; overflow: hidden; } .information .info-content > div { padding: 20px; background: #FFF; } .information .info-content > div:not(:first-of-type) { display: none; }

Tab - Script Codes JS Codes

$('.info-list li').click(function(){ $(this).addClass('active').siblings('li').removeClass('active')
$('.info-content div').hide(); $('.' + $(this).data('class')).fadeIn(1000) ;
});
Tab - Script Codes
Tab - Script Codes
Home Page Home
Developer Mohammed Fawzy
Username mohammed-fawzy
Uploaded January 26, 2023
Rating 3
Size 2,563 Kb
Views 8,096
Do you need developer help for Tab?

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!

Mohammed Fawzy (mohammed-fawzy) Script Codes
Create amazing art & images 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!