"pure css accordion" Code Answer's
You're definitely familiar with the best coding language CSS that developers use to develop their projects and they get all their queries like "pure css accordion" answered properly. Developers are finding an appropriate answer about pure css accordion related to the CSS coding language. By visiting this online portal developers get answers concerning CSS codes question like pure css accordion. Enter your desired code related query in the search bar and get every piece of information about CSS code related question on pure css accordion.
pure css accordion
HTML<div id="container">
<!-- Item 1 -->
<div class="accordion">
<label for="tm" class="accordionitem">
<h2>Item 1 <span class="arrow">»</span></h2></label>
<input type="checkbox" id="tm"/>
<p class="hiddentext">One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.</p>
</div>
<!-- Item 2 -->
<div class="accordion">
<label for="tn" class="accordionitem">
<h2>Item 2 <span class="arrow">»</span></h2></label>
<input type="checkbox" id="tn"/>
<p class="hiddentext">One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.</p>
</div>
<!-- Item 3 -->
<div class="accordion">
<label for="to" class="accordionitem">
<h2>Item 3 <span class="arrow">»</span></h2></label>
<input type="checkbox" id="to"/>
<p class="hiddentext">One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.</p>
</div>
</div>
Source: vizua.net
pure css accordion
CSS#container{
width: 400px;
height: auto;
margin: 0 auto;
margin-top: 3%;
border-top: 1px solid #bdbdbd;
border-left: 1px solid #bdbdbd;
border-right: 1px solid #bdbdbd;
}
.accordion label{
display:block;
background-color: #eeeeee;
padding: 10px;
color: #424242;
text-shadow: 0 0 2px rgba(255,255,255,0.6);
cursor: pointer;
border-bottom: 1px solid #bdbdbd;
border-top: 1px solid #ffffff;
}
.accordion p{
color: #424242;
padding: 10px;
font-size: 0.8em;
line-height: 1.7em;
border-bottom: 1px solid #bdbdbd;
visibility: hidden;
opacity: 0;
display: none;
text-align: left;
background-color: #fff;
margin-top: 0px;
}
#tm:checked ~ .hiddentext{
display: block;
visibility: visible;
opacity: 1;
}
input#tm{
display: none;
position: relative;
}
#tn:checked ~ .hiddentext{
display: block;
visibility: visible;
opacity: 1;
}
input#tn{
display: none;
position: relative;
}
#to:checked ~ .hiddentext{
display: block;
visibility: visible;
opacity: 1;
}
input#to{
display: none;
position: relative;
}
Source: vizua.net
All those coders who are working on the CSS based application and are stuck on pure css accordion can get a collection of related answers to their query. Programmers need to enter their query on pure css accordion related to CSS code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about pure css accordion for the programmers working on CSS code while coding their module. Coders are also allowed to rectify already present answers of pure css accordion while working on the CSS language code. Developers can add up suggestions if they deem fit any other answer relating to "pure css accordion". Visit this developer's friendly online web community, CodeProZone, and get your queries like pure css accordion resolved professionally and stay updated to the latest CSS updates.