How to resize image without losing image quality via css

Answered

main apni website ki images ko resize krta hon to image kharab ho jati hy jese pixel phat jati ho iska koi solution btain

Train Asked on November 14, 2018 in Web Designing.
Add Comment
1 Answer(s)
Best answer

HTML

<div class="post-thumbnail">
<a href="your-link">
<img width="310" height="165" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/14179/qrcode.png" alt="image resize"> </a>
</div>

CSS

.post-thumbnail img {
image-rendering: pixelated;
height: 165px !important;
max-width: 310px !important;
width: 100%;
transition: all .4s;
}

post-thumbnail ko apni class se replace kr dena ho jay gi image resize without losing quality

Admin Answered on November 14, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.