In my jQuery code, I created a div with a width of 100% and a height equal to the width multiplied by 0.1.
<figure class="container">
</figure>
$('.container').height($(this).width() * 0.1);
*
{
margin:0;
padding:0;
border:0;
}
.container
{
width:100%;
background:black;
}
I am now wondering how I can expand the height when clicking on this element.