Can somebody tell me why image background is deformed in mobile view ? how can i fix it ?

background image is deformed only in mobile view can somebody help me
2 Replies
Kevin Powell
Kevin Powell2y ago
background-size: 100% auto You're skewing the image. The width is matching the width of the space, but the height is staying at the default height of the image, so depending on the viewport size, it's squooshing or pulling it wider background-size: cover is usually the safest if you don't want it to get squished or stretched. It will crop some of the image, but we sort of need to live with that since we can't have consistent sizes/aspect-ratios across different devices
samidev
samidev2y ago
thank you @Kevin i've never thought u will reply to me, big fan of u, i really appreciate it, ye i know it crops some of the image and i thought it has solution but ye thank you alot ❤️
Want results from more Discord servers?
Add your server