How to set small section height for mobile and large size for home page image with text overlay?

On my mobile view of my site the home page image has large gaps but if I set the size to small it fits perfectly the only issue is that then the desktop view the image is also small. My store is drearyvisuals.com and the password is quapru

1 Like

@dreary

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide a solution here.

1 Like

My shop url is drearyvisuals.com and the site password is quapru

@dreary

sorry i can’t see both are section can you please show me

1 Like

the mobile version has the big gaps when the image is set to large extra large or adapt to image when I customize my website. But on desktop it looks fine. If I set the image to small to have it fit correctly for mobile it then looks too small for desktop

@dreary

thanks for clear

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
@media only screen and (max-width: 749px) {
#shopify-section-hero-1 .hero-hero-1 {
    height: 67.333333vw !important;
}
}
1 Like

Thank you very much this fixed it!! Have a great rest of your day! :slightly_smiling_face:

1 Like

@dreary

it’s my pleasure to help you

1 Like