Changing distance of right margin

  • Unknown's avatar

    Hi everyone! I’m having a hard time trying to change the “inverted indentation” of a post. Well, I’ll do my best to explain what I mean by that, since I don’t know the CSS rule/name of it.

    I’ve set a CSS code to automatically justify my posts. Everything has run smoothly, until now. The post that is causing me trouble is a poem, so the position of the words really matters.

    The artist has send me the form of the text he wishes. But his .pdf has a different distance from the content to the borders, the margin width is larger than my post’s.

    I’ve found a way of maintaining his original arrangement by setting the paragraphs to start with slightly more pixels (50px) so the issue with the left margin is solved. When the number of words of a sentence in my post are different (the sentences are longer) I’ve pressed return in a way that when his verses keep going in the following line, the second line has exactly the same first word as his.

    But due to my act of starting a new line, WordPress thinks the sentence has ended (before the margin) so it doesn’t justify it. What I need is to shorten the distance, probably in about 30px to the right margin of the page. So in theory I won’t need to press return when the sentences reach this limit and it’s automatically justified. I tried changing the padding, border and margin, but for some reason it either changes the imaginary size of the page or actually the right distance after the border has ended, not the one before.

    Does anyone know what I can do? Please reply if I didn’t make myself clear. It’s quite difficult to explain what I mean.

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    This blog is marked as private. I can’t even view it to see what might be going on.

  • The post that is causing me trouble is a poem, so the position of the words really matters.

    Could you please provide a link to the post with the poem, and a link to the artist’s PDF so we can take a look and understand the problem better? Thanks.

  • Unknown's avatar

    Thanks kathrynwp! I had to post it as an image: http://revistausina.com/2014/06/15/saudacao-a-eduardo-coutinho-ii-2/

    If you notice it’s justified because his page size is more narrow than wordpress’. When I try to maintain the same number of words per verse, I have to return, as if a new line had started, but in doing so, it’s not justified…

  • Thanks for the image. I’d also like to see the post with your attempt so far – could you please link to that too? I’ll be able to see it even if it’s a draft.

  • Unknown's avatar

    Sure but don’t trouble yourself too much. All I’ve been doing was setting <span style=”padding-left:50px;”>

    Is there a way to make an invisible right-margin of about one inch without changing the actual size of my wordpress “post page”?

  • Sure but don’t trouble yourself too much.

    So could you please paste the link here so I can see it? :-) It’ll let me to help you more easily if I can see the post you’re talking about.

    Is there a way to make an invisible right-margin of about one inch without changing the actual size of my wordpress “post page”?

    Yes, it’s possible. Do you want the extra space on only that one specific post with the poem? Again, the link would be great. Thanks!

  • Ah, perhaps I’ve misunderstood. Do you not have a draft of the poem page in text form – it only exists as an image?

    We actually have a whole guide to formatting poetry – would you like to have a look and see if it helps? Using preformatted text might be the way around your spacing issues.

    http://en.support.wordpress.com/editors/styling-individual-posts-and-pages/

    To add some right padding on the poem post only, you could try something like this in your custom CSS:

    .single .post-1955 .entry-content {
         padding-right: 80px;
         width: 82%;
    }

    Let me know how it goes!

  • The topic ‘Changing distance of right margin’ is closed to new replies.