Images not responsive on mobile

Hi,

my header background images are not responsive and the portfolio images are too big (imho). How can I fix this these problems?

Comments

  • Hi,
    It's because you have turned on the "Parallax" effect, it's not gonna 'scale', but it will stay in the center (like cutting).
    Also, you assigned very big padding value, that's why it's long on mobile.

    If you want to use background video (as in yours, the picture is changing), you should use the Revolution Slider instead.

    It's easy to use and it has a lot of advanced options which will make your header background beautifully.
    Thanks
  • Thank you, I changed the Parallax to Center, but if I take off padding, my header image becomes very small in height. It should be 400 or 500px of height, is there an other way to set this?
    Lets use this page as example: https://lpg.jls.mybluehost.me/celeste-project/

    And how can I make the portfolio pictures smaller on mobile? https://lpg.jls.mybluehost.me/products/
  • 1) You can create separate section for mobile and desktop.
    It's in the section settings, exactly it's a "Responsive Visibility"

    2) You can make it smaller only globally, but try this code if you want to change it on mobile only.
    Paste it to the Theme Options > Custom CSS & JS > CSS

    @media (max-width:768px){
    .portfolio-item{
    transform:scale(0.8) !important;
    }
    }
    Thanks
  • 1) Thank you, this works.

    2) Thank you, with this code the images resize, but there is a lot of space between them. I guess the container can't resize, right?

  • It shouldn't be touched by CSS to be honest, because it's all calculated using Javascript.
    Unfortunately, the height of the container is clearly managed by that script and even changing it with CSS will not change it.

    Greetings
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.