• Hi, I noticed that the output authors-list-item-excerpt and authors-list-posts-item have leading and trailing spaces in them. Can this be fixed… so the texts align left properly.

    Great plugin!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @jackey

    Browsers ignore white spaces at the start and end of an element, they’re not shown when the page is rendered, so those do not influence the alignment.

    In the case of the excerpt, you currently have that set to center alignment.

    As for the list items, that’s due to the custom list item markers that you have.

    The markers are added in a way that they’re actually part of the list item content and then with margin left they’re offset to the left so they appear as if they are outside of the list item. But they’re part of the first line of text and push it to the right a bit.

    My suggestion is adding the following CSS code:

    .authors-list-posts-item {
        position: relative;
    }
    ul.authors-list-posts li:before {
        position: absolute;
        top: 0;
        left: 0;
    }

    The position absolute on the marker would make it so it does not influence the positioning of the rest of the text.

    Thread Starter jackey

    (@jackey)

    Thanks for pointing that out… totally missed it. I stand corrected ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Leading an trailing spaces in output’ is closed to new replies.