0

I'm currently doing a practice but I can't seem to get it to work.

i'd give some code but idk how to indent the code so for this use this jpg.

https://roco.studio/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg

  • 1
    Your Question is not clear, hard to understand what you exactly need. so please give more details. then only you will get proper solution for your question. – Katheer Nov 02 '21 at 05:19
  • Does this answer your question? [How can I fill a div with an image while keeping it proportional?](https://stackoverflow.com/questions/14142378/how-can-i-fill-a-div-with-an-image-while-keeping-it-proportional) – Hariharan V. Nov 02 '21 at 05:43

1 Answers1

0

.img-wrapper{
width:100%;}
.img-wrapper img{
width:100%;
}
<div class="img-wrapper">
  <img src="https://roco.studio/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg" />
</div>
Arezou Saremian
  • 508
  • 3
  • 8