Question regarding images in css
Hello everyone, how do I make an image wider but smaller height (shorter), in my design that I am working on the image is normal on mobile sizes and wider on tablet sizes
4 Replies
Hello, do you have an example?
Yep, gotta see the code. Code pen or GitHub pages or something.
@s2k_off try using an
aspect-ratio
.You could achieve this by setting the width of the image to a percentage or vw (view width).