Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #981203
    rogerskeri
    Participant

    Hello,

    When viewing a website that I’m creating, the social media images are not responsive on mobile phones and show up really large. Is there a way to downsize the images somehow to where they look much cleaner when viewing the website on mobile devices?

    #981204
    rogerskeri
    Participant
    This reply has been marked as private.
    #981374
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    What social images you’re currently referring? Is it the icons? Would you mind providing some details of how I can reproduce this issue on my end. Screenshot will help too 🙂

    Thanks!

    #981414
    rogerskeri
    Participant

    Here’s what the images are looking like on mobile devices. They are too large. I will probably need to create separate id’s for each one, yeah?

    #981590
    Nico
    Moderator

    Hi There,

    Add this in your customizer’s custom CSS this will adjust the size of the colum:

    @media (max-width: 767px)
    .icon-social-media .x-column.x-sm {
        float: left;
        width: 20%;
        margin-right: 0;
    }

    Adjust the width to adjust the size of the icon in mobile devices.

    Hope it helps.

    Thanks.

    #987085
    rogerskeri
    Participant

    No, it didn’t work at all 🙁

    #987162
    Friech
    Moderator

    Hi There,

    Add a class to each of those images icon.

    e.g.
    myclass

    And then add this on your custom css

    @media (max-width:  480px) {
    	.myclass {
        max-width: 25%;
        margin: 0 auto 12px;
    	}
    }

    Hope it helps, Cheers!

    #988687
    rogerskeri
    Participant

    Ok, this works great. I added some more css styling to make the images inline. Now, I have an issue with the images being stuck together. I’ve tried adjusting the padding to separate them, but to no avail. Can you assist?

    #989070
    Rupok
    Member

    Hi there,

    Thanks for updating. Let’s add the below code within your media query :

    .x-img.myclass > img {
      padding: 10px;
    }

    Hope this helps.

    Cheers!

    #990448
    rogerskeri
    Participant

    BOOM!!!!! IT WORKS! THANK YOU!!!!!!!!!!!!!!!!!! YOU GUYS ARE THE BEST!

    #990822
    Prasant Rai
    Moderator

    Happy to hear that. Feel free to ask us again. Have a great day! 🙂

  • <script> jQuery(function($){ $("#no-reply-981203 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>