UPDATE: Issue Resolved! See the comments for details. Thanks to the helpful Dev!
I'm facing a challenge with my website's homepage design. I'm trying to incorporate a background image that spans the full width of the screen. My website is built on WordPress with Elementor.
Despite multiple attempts, I haven't been successful in achieving the desired result of filling the full screen width while maintaining the correct image height to preserve the aspect ratio.
Unfortunately, a portion of the image on the right side is being cropped out.
Here's the code snippet I've used:
<div id="kunstplein1920"></div>
#kunstplein1920 {
background: url(imageURLhere);
background-repeat: no-repeat center fixed;
background-size: cover;
min-width: 1920px;
min-height: 603px;}
Any assistance or suggestions would be greatly appreciated! Thank you in advance. :)
Best regards,
Joris