gaurav1998
Explore posts from serversKPCKevin Powell - Community
•Created by gaurav1998 on 7/3/2024 in #front-end
Why does this background image appear as 180px wide?
transform-origin: left
fixed it!
The problem was actually that I scaled the image by 2 first and then didn't like how it created horizontal scroll. Thus, to eliminate the horizontal scroll and bring the width down from 720px to 360px I applied a width of 50%.
I think the better approach for next time would be to use overflow-x-hidden for a wrapper to eliminate the horizontal scroll3 replies