Large image with text shows a big space in mobile version

Hey guys, so I have this big space in the mobile version after the image with text, what can I do. Can you please help?

1 Like

Hello There,

Please share your store URL and Password.
So that I will check and let you know the exact solution here.

https://www.luluabeauty.com

Thank you!

1 Like

@Iamheretoo

Please add the following CSS code to your assets/theme.css bottom of the file.

@media only screen and (max-width: 589px){
.animation-cropper {
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: center;
}

.background-media-text__text {
    margin: 0 auto !important;
    text-align: center !important;
}
}

Thanks!

Do you want to add text on that space?

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset >theme.scss.css and paste this at the bottom of the file:
.background-media-text .animation-cropper {
width: 10;
display: block;
width: 100%;
text-align: center;
}
.background-media-text .animation-cropper .background-media-text__text {
text-align: center;
}

so there is still a gap in the mobile version, smaller for sure, and for desktop, it places on the top left, different from the initial right-hand side to match with the ad.

@Iamheretoo

what do you want Exactly? Please share a screenshot.

Thanks!

so in the mobile version, there is a big gap which I try to remove by extending the button or just not to look like this. In the desktop version the image is slightly cut in the lower part and I am trying to fit in.

thank you for trying to help :slightly_smiling_face:

@Iamheretoo

Solution for desktop

Please add the following CSS code to your assets/theme.css bottom of the file.

@media only screen and (min-width: 590px){
.background-media-text--right .animation-cropper {
    float: left !important;
}
}
1 Like

@dmwwebartisan

there is just a little gap left up and down

1 Like

@Iamheretoo

Solution for mobile

@media only screen and (max-width: 589px){
.background-media-text__aligner {
    margin: -40px -11px 0px !important;
}
}

@dmwwebartisan

with the last solution is back to the initial error

showing like this

@Iamheretoo

Try this code for mobile

@media only screen and (max-width: 589px){
.background-media-text__aligner {
    margin: -40px -11px 0px !important;
}
.animation-cropper {
    display: block !important;
}
.background-media-text__text {
    margin: 0 auto !important;
    text-align: center;
}
}
1 Like

@Iamheretoo

If helpful then please Like and Accept Solution

Thanks!

@dmwwebartisan thank youuuuuu! it works for the mobile

1 Like

@Iamheretoo

Solution for desktop .

Please add the following CSS code to your assets/theme.css bottom of the file.

@media only screen and (min-width: 590px){
.background-media-text--right .animation-cropper {
    float: left !important;
}
}

Thanks!

@dmwwebartisan

unfortunately, this doesn’t work. it just put the button on the left, however, I nailed it from editor mode.

Thank you so much for the mobile version.