Resize Background Image/attachment In Mobile View - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Resize Background Image/attachment In Mobile View

AB

Alexander Brandl

SP Page Builder 3 years ago

Hello, I use the helixultimat template and edit it with the page builder. How can I resize wallpaper for mobile view here. https://dr-mainberger.de/_cms2022/index.php/notdienst.html What is meant is the image below after the content.

Thanks in advance for your help, Alex

0
4 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #84830

Hi there!

Thanks for your query.

You may use the following code snippet in your custom CSS:

@media (max-width: 767px){
section#section-id-1658999312441{
    background-position: center !important;
    background-size: 100% 45% !important;
}
}

Note: Path towards custom CSS(Joomla 3): Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Best Regards

0
AB
Alexander Brandl
Accepted Answer
3 years ago #84859

Hello, I inserted the css code - but it's joomla 4 - and it doesn't work. what could it be - any ideas? best regards Alex

https://dr-mainberger.de/_cms2022/index.php/notdienst.html

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #84958

Hi Alex,

I have no CSS method.

Create new 2nd Row with smaller bg image , but with background-attachment: scroll , NOT fixed! Set to display only in Mobile, Hidden in Desktop and Tablet .

And in 1st orginal Row Options > Hidden in Mobile.

foto_8811_2022.jpg

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #84959

In Rashida code change only one line

from section#section-id-1658999312441

to .sp-page-builder .page-content #section-id-1658999312441

and add also

background-attachment: scroll !important;

inside 2nd { }

0