I\'m having a frustrating issue, and would love some help.
I\'ve written a script to allow me to resize a div on screen for an application I\'m building for a client, b
Here's a re-sizeable example using background
:
div{
resize:both;
overflow:hidden;
width:200px;
height:300px;
background:url(https://picsum.photos/200/300)no-repeat 0 0;
background-size:100% 100%;
}
Here's another using img
:
div{
resize:both;
overflow:hidden;
height:300px;
width:200px;
}
img{
width:100%;
height:100%;
}