JSFiddle - React, Tailwind, and code Playground
by jspence29
HTML
<ul class="mainpackages">
<li class="first1"><p>Pick a package that suits you!</p></li>
<li class="last1"><p>Special deals & offers!</p></li>
</ul>
<div id="suitsyou">
</div>
<div id="dealsandoffers">
</div>
CSS
ul.mainpackages {margin: 0 auto; height: 40px; }
ul.mainpackages li {
border-top-width: 4px;
border-bottom-width: 4px;
border-top-style: double;
border-bottom-style: double;
border-top-color: #FDFECD;
border-bottom-color: #FDFECD;
height: 40px;
width: 300px;
background-color: #DDEFEF;
display: inline-block;
margin: 0px 60px;
}
ul.mainpackages li p{
margin-top: 10px;
font-size: 16px;
text-align: center;
}
#suitsyou {
border-top-width: 4px;
border-bottom-width: 4px;
border-top-style: double;
border-bottom-style: double;
border-top-color: #FDFECD;
border-bottom-color: #FDFECD;
height: 600px;
width: 800px;
background-color: #DDEFEF;
margin: 20px;
}
#dealsandoffers {
border-top-width: 4px;
border-bottom-width: 4px;
border-top-style: double;
border-bottom-style: double;
border-top-color: #FDFECD;
border-bottom-color: #FDFECD;
height: 600px;
width: 800px;
background-color: #DDEFEF;
margin: 20px;
}
JavaScript
$(".first1").onClick(
function () {
$('#suitsyou').show();
},
function () {
$('#suitsyou').hide();
});
$(".last1").onClick(
function () {
$('#dealsandoffers').show();
},
function () {
$('#dealsandoffers').hide();
});