Hello, I want my banner picture to be full screen on phone.
I have no experience with code and used some code to get the banner picture behind the website menu and logo. But now the banner picture is displayed too small on mobile. As well as not full screen on desktop.
I’m using dawn theme and my website is https://www.georgious.nl/
I have tried multiple forum solutions to add to /base.cs s
But nothing changes the layout.
Help much appreciated.
Kind regards
1 Like
Hi @Georgious
TRy this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.banner__box.content-container {
position: absolute;
background: transparent;
bottom: 10%;
}
.banner__media.media img {
object-fit:unset;
}
.banner__media.media {
height: 90vh;
width: 100%;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi Made4u,
Thanks for looking into it!
Your code is definitely in the right direction, the image is full screen.
But now its stretched. How do I solve this?
@Made4uo-Ribe Hi thanks for looking into it!
Do you have a fix for the stretching of the image as my previous reply?