Full screen mobile banner

Full screen mobile banner

Georgious
Tourist
3 0 1

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

 

Screenshot 2024-10-18 at 22.03.02.pngScreenshot 2024-10-18 at 22.02.56.png

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @Georgious 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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%;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1729287410556.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Georgious
Tourist
3 0 1

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?
Screenshot 2024-10-19 at 00.20.26.png

Georgious
Tourist
3 0 1

@Made4uo-RibeHi thanks for looking into it!
Do you have a fix for the stretching of the image as my previous reply?