[Resolved] How to set equal spacing in archives with columns

Home Forums Support [Resolved] How to set equal spacing in archives with columns

Home Forums Support How to set equal spacing in archives with columns

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #688390
    Emil

    Hello, I have set Display posts in columns but my articles have diferent spacing. How to fixed?

    #688649
    David
    Staff
    Customer Support

    Hi there,

    you would need to switch off the Masonry in the blog settings. And you could force the title to always be a fixed number of lines with this CSS:

    .blog .entry-title, .archive .entry-title, .search .entry-title {
        line-height: 2.5ex;
        height: 7.5ex;
        overflow: hidden;
    }
    #688686
    Emil

    Thanks 🙂

    #688697
    David
    Staff
    Customer Support

    You’re welcome. Note that the code above will only display 3 lines, anything on a 4th line is hidden. You can increase the line-height and height for more lines. Eg. for 4 lines:

    .blog .entry-title, .archive .entry-title, .search .entry-title {
        line-height: 2.5ex;
        height: 10ex; /* 4 times line height */
        overflow: hidden;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.