I'm new to CSS, and, as my technical expertise is not quite good, I will try to explain as simply as I can. I have an image that uses half of the screen I'm using the below CSS code after reading a couple of articles
<div class="div-block-87">
<img src="image.jpg" alt="">
</div>
img {
max-width: 100%;
vertical-align: middle;
display: inline-block;
height: auto;
}
The problem is that image is cut like below:
While when I use inspect image shown as expected, see below:
Sorry, if my description is terrible but I do not know how else to explain.