"boostrap tab-menu{responsive}"
Bootstrap 4.1.1 Snippet by ishu511

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!--starting_tabs=======---> <section id="tabb"> <div class="container"> <div class="row"> <h2 class="ayush">AYUSH THAKUR</h2> <div class="col-md-12 col-sm-12 col-lg-12"> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#home">2010</a></li> <li><a data-toggle="tab" href="#menu1">2012</a></li> <li><a data-toggle="tab" href="#menu2">2014</a></li> <li><a data-toggle="tab" href="#menu3">2016</a></li> <li><a data-toggle="tab" href="#menu3">2018</a></li> </ul> <div class="tab-content"> <div id="home" class="tab-pane fade in active show"> <h3 id="s">2010</h3> <p id="sq">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p> </div> <div id="menu1" class="tab-pane fade"> <h3 id="s">2012</h3> <p id="sq">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p> </div> <div id="menu2" class="tab-pane fade"> <h3 id="s">2014</h3> <p id="sq">Sed utLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.</p> </div> <div id="menu3" class="tab-pane fade"> <h3 id="s">2016</h3> <p id="sq">Eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div> </div> </div> </div> </div> </section>
.ayush { color: red; text-align: center; width: 100%; font-size: 35px; position: relative; top: -39px; left: -52px; text-shadow: 2px 2px 1px yellow; } #tabb { background-image: url(https://imgnooz.com/sites/default/files/wallpaper/animals/55979/lovely-puppy-wallpapers-55979-7740041.jpg); background-repeat: no-repeat; width: 100%; padding: 76px 0; background-size: cover; margin-top: 0; margin-bottom: 0; background-size: cover; } .nav.nav-tabs li a { color: white;padding: 0 26px; font-size: 21px; font-weight: 800; } #tabb h3 { color: white; font-size: 37px;margin-top: 29px; margin-bottom: 20px; } #tabb p { color: white; font-size: 18px; line-height: 37px; font-weight: 600; width: 50%; text-align: justify; } .nav-tabs { border-bottom: 1px solid #dee2e6; width: 47%; } @media only screen and (max-width:991px) { .nav-tabs { border-bottom: none; width: 14%; display: block; position: relative; border-right: solid 1px white; } .tab-content { position: absolute; top: -39px; right: -26px; width: 80%; } .tab-content { position: absolute; top: -39px; right: 0; width: 77%; top: -19px; } #tabb p { font-size: 18px; line-height: 37px; width: 100%; } .nav.nav-tabs li a { padding: 0; font-size: 21px; line-height: 72px; } } @media only screen and (max-width:767px) { #tabb { padding: 58px 0; } .nav.nav-tabs li a { line-height: 53px;font-size: 16px; } #tabb h3 { font-size: 23px; margin-top: 19px; margin-bottom: 7px; } #tabb p { font-size: 16px; line-height: 28px; width: 100%; } } @media only screen and (max-width:575px) { #tabb p { width: 77%; } .tab-content {; width: 79%; } #tabb { padding: 27px 0; } } @media only screen and (max-width:320px) { .tab-content { width: 69%; } .nav-tabs { border-bottom: none; width: 20%; } }

Related: See More


Questions / Comments: