different justify to different posts (3 posts)

  1. ifinci
    Posted 11 years ago #

    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?


  2. James Huff
    Support Representative
    Posted 11 years ago #

    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.

  3. ifinci
    Posted 11 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic