Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1388012
    alanjonesonline
    Participant

    Hi there

    Is it possible to add padding (or margins) just to the sides (not top and bottom) of the feature image for the blog’s masonry archive/category view. I would like for the image and the text to be flush. If this padding effect the feature image once in the post that would be great. See attached image where I did a quick mock up of what I would like to achieve. Icon stack.

    http://www.alanjonesonline.com

    Cheers.

    #1388379
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Please add this on your custom CSS on Customizer.

    .archive.category .entry-featured {
    	    padding-left: 10%;
        padding-right: 10%;
    }

    Cheers!

    #1388388
    alanjonesonline
    Participant

    Great. Thank you.

    #1388590
    Friech
    Moderator

    You’re welcome, we’re delighted to assist you with this.

    Cheers!

    #1389410
    alanjonesonline
    Participant

    Hi there,

    One question about this piece of code. Is is possible for it work on the computer and iPad but NOT the on mobile phones?

    Cheers.

    #1389777
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    In that case please use following code instead:

    @media screen and (min-width: 500px) {
        .archive.category .entry-featured {
    	    padding-left: 10%;
        padding-right: 10%;
    }
    }

    Thanks.

    #1389921
    alanjonesonline
    Participant

    That’s it. Great thank you.

    #1390047
    Thai
    Moderator

    If you need anything else please let us know.

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