Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • felix1 Friend
    #207625

    Hallo!

    I have just learnt how to make mastcol image responsive with this code in custom.css:

    @media (max-width: 992px) {
    .t3-mastcol img {
    width: 100%;
    }
    }

    But how can I make a right margin in responsive mode? Right now the image spans all the way out to the red background area.

    I would like to have a white margin to the right of the image with 20px. Is it possible?

    Sincerely//Felix Rimfrost


    1. Screenshot_2015-06-19-20-48-10

    Felix Rimfrost

    felix1 Friend
    #574855

    A supplement only, this applies to my 10-inch tablet. On mobile view it looks good…

    Felix Rimfrost

    Adam M Moderator
    #575223

    Hi @felix1,

    Please open file /templates/purity_iii/css/custom.css then add this code :

    img {
    max-width: 100%;
    }
    .t3-sidebar .row {
    margin-right: 0;
    }
    @media (max-width: 768px) {
    .t3-sidebar .row {
    margin-left: 0;
    }
    }

    felix1 Friend
    #575266

    Nice, it worked! 🙂

    Although, I didn’t have to use the first img code:

    img {
    max-width: 100%;
    }

    It worked anyway and now the image looks fine on my tablet…

    Sincerely//Felix Rimfrost

    Felix Rimfrost

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  felix1 9 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum