Can anyone please explain me why am I getting scrolling bar when I put content inside the div below.
* {
margin:0;
padding:0;
}
div {
top:0;
position: relative;
background: url("https://4.bp.blogspot.com/-k8IX2Mkf0Jo/U4ze2gNn7CI/AAAAAAAA7xg/iKxa6bYITDs/s0/HOT+Balloon+Trip_Ultra+HD.jpg") no-repeat;
background-size: contain;
padding-bottom: 56.25%;
}
<div>
<br><br><br><br><br><br>
</div>
If I remove the br
tags inside of the div - scroll bar removed as well.
Overflow: hidden - is not an option.
I want to be able use content inside of a div, but so the div will remain the aspect ratio - how can I achieve this, please?
` into your `