• Hi,
    I know I can set the justify mode for all post in the CSS file of the theam I use. The problem I have, is that my BLOG contains posts in 2 languages, each one need a different justification (English – to the left, Hebrew to the right).

    Is there a way to define justification per post?

    Thanks
    Ilan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    It’s possible. I can’t tell you the specifics, but I can tell you the basics. You’ll have to remove the justification attribute from whatever your post class is in the CSS. Then, add “justifyl” and “justifyr” as classes to the CSS. Both need to be specifically tailored to your theme via pixel margins. Then, just post with <p></p> tags and include the class. For example:
    <p class="justifyr">This post is justified to the right</p>

    I hope that helps, and I really need to sleep.

    Thread Starter ifinci

    (@ifinci)

    Thanks,
    I’ve tried first to do it without changing the CSS, and found out it works fine, so I just use:

    <div style="text-aligh:right"> my hebrew text </div>

    <div> gives me better results (or atleast easier) then <p>, since I can have more then a single paragraph in it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘different justify to different posts’ is closed to new replies.