Is there a way to create a responsive div similar to the img-responsive class in Bootstrap, but for a div element that changes its height relative to its width when the window size is adjusted?
For example, if you look at the slider on this website "", you will notice that as you resize the window, the slider maintains the ratio of height to width.
Do I need to use JavaScript to achieve this effect, or can it be done with CSS or Bootstrap alone?
<div class="responsive-banner">
<!-- height/width === k -->
</div>