• I had made some posts, all good.
    Now, I’m trying to do a post, and some lines of text I want to indent with 3 hits of the spacebar. If I copy the whole text from an external doc, the indents don’t come thru. If I indent within WordPress, it appears ok in the visual editor, but doesn’t indent on the preview page or published post.

    Does anyone know how to solve this issue?

    thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • HTML does not accept spacebar hits. You will need to do it by inserting

     

    a few times in HTML-View (where nbsp means non-breaking-space) or you could use a class that has the css-property text-indent and do it that way.

    Thread Starter rok-sivante

    (@rok-sivante)

    that works – though a SERIOUS pain in the #ss. I don’t understand why it doesn’t work in the visual editor – was working fine before. any way to get it working with the Visual editor?

    thanks!

    I will suggest css for this too.

    If you want to indent an entire paragraph at your will you can do it using the html edit view and add some sort of class to that paragraph:
    <p class="classname">stuff here</p>.
    Then in your css:

    .classname {
    padding-left: 2em;
    }

    This will add padding to the entire paragraph.
    If you want only the first line in a paragraph to set in from the margin (that’s exactly the meaning of indent, at least in typography) use:

    .classname {
    text-indent: 2em;
    }

    Call the class whatever you want and experiment with units.

    Some resources:
    https://www.webtypography.org/index.php?s=indent
    https://designpepper.com/2008/09/01/the-web-designers-typographic-glossary/

    Thread Starter rok-sivante

    (@rok-sivante)

    thanks for the feedback, though all too complicated – I’d just like it simple & straightforward, working like it was before – paste from an external document & have it come up exactly the same, without all text starting at the beginning of a line, or able to space bar it & be published like it shows up in the Visual Editor.

    Thanks!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can’t indent text in posts… ?’ is closed to new replies.