A user seeks to maintain the original resolution of their hero banner background image without any zooming or distortion, referencing an example site for the desired effect.
Proposed Solutions:
Modify CSS background-size property to auto instead of cover or contain to preserve original dimensions
Use object-fit: contain on hero image/video elements via custom CSS
Adjust section height using media queries for larger screens
Current Status:
One solution successfully prevented image distortion but created unwanted empty/white space around the banner. The user uploaded a screenshot showing the spacing issue and is now seeking guidance on removing this extra space while maintaining the original image resolution. The discussion remains open with the spacing problem unresolved.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
How do i make it such that the image used for the background for the hero banner remain the same resolution? I dont want it to zoom in or out or alter the image in any way
I like the preview page you have for scrawledsenses. To keep your hero banner at its original solution, you will need to adjust the CSS background settings. Before that, make sure you are using an image as background and CSS-based, and make sure to create a backup of your original code in case things go south and you need to revert back.
Under Edit Code > theme.css, apple the following:
.hero-banner {
background-image: url(‘your-image.jpg’);
background-repeat: no-repeat;
background-size: auto; /* Keeps original resolution /
background-position: center top; / Adjust as needed */
}