• Hello all,

    I have just started a Persian-Farsi blog using the amazing wp 1.5 . It would be awsome If I could some how make the comments show right aligned in Farsi.

    I use this html code to achieve that objective when I post in the blog and works perfect:

    <p class=”MsoNormal” dir=”rtl” style=”DIRECTION: rtl; unicode-bidi: embed; TEXT-ALIGN: right”>

    Can the same code be used somehow somewhere so the comments would show correctly in Farsi?

    Or are there any other ideas?

    thanks a million.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you add text-align:right to the commentlist css?

    Thread Starter farrokh

    (@farrokh)

    I don’t follow you. Can you explain a little more please?

    I think oriecat means direction which is a CSS property to set writing direction. In a style sheet your entry would look like:

    .commentlist {
          direction: rtl;
    }

    RTL indicates right-to-left base direction. If your whole blog is in Farsi, you could put this attribute in the body, td section of your stylesheet and format the whole thing with just one entry.

    Thread Starter farrokh

    (@farrokh)

    Cool, I’m looking at the Style CSS sheet right now.

    There are a bunch of stuff that deals with the comment list.

    Where do you suggest I insert the above code in relation to the other commentlist codes? in the middle of them , above them, or beneath them?

    Doesn’t matter, anywhere in that list works. Be sure you have a closing semicolon (;) after each entry.

    .commentlist {
          direction: rtl;
          font: 12px verdana, sans-serif;
          color: #333;
    }

    For example.

    Thread Starter farrokh

    (@farrokh)

    Ok, disregard.

    I put it in there somewhere in between the other comment list stuff and it worked ??

    You guys are my heroes.

    Hi

    As follow, in the style.css change text align=” left” to right and thats it, It will change all text’s direction from left to right
    example:

    #content {
    float: left;
    width: 220px;
    margin: 16px 8px 20px 8px;
    overflow: hidden;

    text-align: left;

    }

    and also:

    .feedback {
    color: #ccc;

    text-align: left;

    clear: both;
    text-transform: lowercase;
    }

    and:

    #rap {
    width: 944px;
    margin: 0 auto;
    background: url(“img/rap.png”) repeat-y;

    text-align: left;

    }

    Hello
    I have added the Code mentioned above => .commentlist {
    direction: rtl;
    font: 12px verdana, sans-serif;
    color: #333;
    }<=
    to the style.css. But, actualy nothing happened in my page (https://www.easypersian.com/seed/).
    Am I missing something? Please advise.
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Comment text not correctly aligned!’ is closed to new replies.