Archives Layout – custom Masonry odd and even rows

This topic has 2 replies, 2 voices, and was last updated 2 weeks, 4 days ago ago by Luca Rossi

  • Avatar: Teya Bozhilova
    Teya Bozhilova
    Participant
    August 31, 2024 at 19:27

    How to achieve a a look for the categories where odd rows are 3 posts, even rows are 4 posts.

    The first post from the odd number rows are larger, like the Screenshot

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    September 2, 2024 at 05:12

    Dear @Teya Bozhilova,

    Thank you for reaching out to us.

    We would like to inform you that the customization you are requesting involves extensive coding and unfortunately falls outside the scope of our standard support services.

    However, we encourage you to experiment with the following custom CSS code to adjust the width of specific elements (such as the 1st, 4th, 5th, etc.):

    
    .et_blog-ajax article.blog-post:nth-child(6n+1) {
        width: 40%;
    }
    

    Additionally, you may find this tool useful for identifying which elements you wish to modify: [CSS Tricks nth-child Tester](https://css-tricks.com/examples/nth-child-tester/).

    Thank you for your understanding.

    Best Regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.