I am having trouble with my image banner. It shows well in the desktop version but the mobile version has the left and right side portions cut-off. I am using the 3:2 aspect ration and the image size is 1080x720 pxl size.
I checked with support and unfortunately support tells me this is how it is for Dawn. I am having a hard time understanding how that could be since its so basic feature. So dissapointing
I hope some expert in here has a solution. Thank you so much for taking the time!
Adjust the image dimensions: Since the image is cut off on the left and right sides in the mobile version, you can try resizing the image to fit better within the mobile screen. You can experiment with different dimensions, such as reducing the width while maintaining the aspect ratio, to ensure the entire image is visible on mobile devices.
Use media queries: You can use CSS media queries to apply specific styles to the image banner based on the device’s screen size. By targeting the mobile viewport, you can adjust the positioning or scaling of the image to make it fully visible. Here’s an example of how you can use a media query to adjust the image size for mobile:
@media (max-width: 767px) { /* Adjust the max-width value to match your desired mobile breakpoint */
.image-banner {
width: 100%; /* Adjust the width as needed */
height: auto;
object-fit: contain; /* or object-fit: cover; depending on the desired effect */
}
}
Hi, I am not sure which file i need to add this to? I added this code to base.css and made width to 50% and played with different numbers but that has not changed anything and the mobile image is still showing with sides cut-off.
Yes, but I am not sure how to give access in a secure way. If you can share your email, i guess i can give you permission?? Sorry never done that before, so you have to help me with that.