<div class="block">
<div class="block">
<input type="radio" name="city" id="cityA" checked />
<label for="cityA"><span>Samarkand</span></label>
<div class="info">
<p>Samarkand is the second-largest city in Uzbekistan and the capital of Samarqand Province. The city is most noted for its central position on the Silk Road between China and the West, and for being an Islamic centre for scholarly study.
</p>
</div>
</div>
<div class="block">
<input type="radio" name="city" id="cityB"/>
<label for="cityB"><span>Tashkent</span></label>
<div class="info">
<p>Tashkent is the capital of Uzbekistan and of the Tashkent Province. The officially registered population of the city in 2008 was about 2.2 million. Unofficial sources estimate the actual population may be as much as 4.45 million.</p>
</div>
</div>
<div class="block">
<input type="radio" name="city" id="cityC" />
<label for="cityC"><span>Bukhara</span></label>
<div class="info">
<p>Bukhara, from the Soghdian βuxārak, is the capital of the Bukhara Province of Uzbekistan. The nation's fifth-largest city, it has a population of 263,400.
</p>
</div>
</div>
<h4>follow me
<a href="https://twitter.com/samarkandiy" target="_blank">@samarkandiy</a>
</h4>
<a class="github" href="https://github.com/html5web" target="_blank"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
body{
body{
background: #ccc;
width: 460px;
margin: 0 auto;
padding: 20px;
font-family: "Verdana";
font-size: 13px;
}
.block{
background: linear-gradient(#111, #333);
color: #fff;
padding-top: 5px;
border-top: solid 1px #444;
box-shadow: 0 1px 2px #000;
line-height: 25px;
}
.block input[type='radio']:checked ~ .info{
height: 130px;
transition: .1s linear;
}
input[type='radio']{
display: none;
}
label{
width: 450px;
margin-left: 15px;
padding-right: 370px;
cursor: pointer;
}
span{
font-weight: bold;
}
.info{
background: #fff;
color: #222;
width: 100%;
height: 0;
padding-left: 15px;
display: block;
overflow: hidden;
box-sizing: border-box;
transition: .1s linear;
}
h4{
color: #111;
text-align: right;
text-shadow: 1px 1px 2px #fff;
position: absolute;
bottom: 20px;
right: 15px;
}
h4 a{
color: #111;
text-decoration: none;
}
::selection{
background: #222;
color: #fff;
}
.github img{
position: absolute;
top: 0;
right: 0;
border: 0;
}