Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Post doesn’t line up properly

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41266
    johnjf
    Member

    On my website [which you can see here](http://elusivebuck.com “elusivebuck”)

    My first post seems to be bigger height wise then the others which makes stacking messed up for the third post. Can someone help me fix this? If I zoom in, it seems to line up properly but when I go back to my normal resolution it gets messed up again.

    #116799
    TheDoc
    Member

    That’s because there is more content in the first box, making it larger. You’ll need to set up the ‘read more’ to truncate a specific range that guarantees a set height.

    #116801
    johnjf
    Member

    Not sure why it’s doing it though. I’m using these functions to create the excerpt

    // Changing excerpt length
    function new_excerpt_length($length) {
    return 42;
    }
    add_filter(‘excerpt_length’, ‘new_excerpt_length’);

    // Changing excerpt more
    function new_excerpt_more($more) {
    global $post;
    return ‘…ID) . ‘”>’ . ‘Read More »’ . ‘‘;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    #116802
    TheDoc
    Member

    You’ll probably need to set a height in the CSS as well, as different characters have different widths and could end up making the post too tall anyways.

    #116803
    johnjf
    Member

    alrighty I’ll give that a try. Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.