Viewing 15 replies - 1 through 15 (of 15 total)
  • It’s aligned left, not right ??
    In CSS you can change that by adding justify to the
    p {...

    Thread Starter rebekkah

    (@rebekkah)

    That’s what I meant ?? Thanks

    Add the following line to your CSS file withing #content. It may already be there as The text-align: left; in which case edit it. Don’t change anything else ??
    The text-align: justify;
    Example …
    #content {
    position:relative;
    text-align: justify;
    font: 80% Tahoma, Arial, Serif;
    }

    Thread Starter rebekkah

    (@rebekkah)

    Ah, perfect. Now I just have to figure out how to decrease the space between my posting area and my menu area. Working on that now, anyone with a quick explanation?

    Thread Starter rebekkah

    (@rebekkah)

    Nevermind, found it ?? Thanks for all your help

    Is there a way to do this per post?

    My Blog contains posts in English, which I want to be justify to the left (as they are currently), and post in Hebrew, which I want to align to the right.

    This is what I have in my CSS:

    #content {
    float: right;
    width: 500px;
    background: #ffffff;
    margin: 0 10px 0 0;
    display: inline;
    }

    How do I get it to justify? I cant seem to find that part that staritt posted.

    daiver, you need to add the “text-align: justify;” element to your #content since it’s not there already. Leave off the double-quotes!

    Just put that in the bottom and the magic happens?

    Well, magic didnt happen. heh. Its still aligned left. I wonder if Rin places this code elsewhere.

    The answer to an eariler question in this thread is how to align content left or right based upon language.

    If you set all your Hebrew (or whatever right aligned language) posts in a specific category, and English in another category, you can use a query that checks to see which category is being viewed, and the header will be changed dependent upon the category. The header contains the style sheet reference which would include the styles needed to accommodate the switch in direction.

    The simple technique is explained here and there are probably other ways of doing it but this is just too easy to do.

    Found this:

    #container {
    width: 750px;
    margin: 10px auto;
    background: #f5f6f7;
    border-left: 1px solid #d5d7db;
    border-right: 1px solid #d5d7db;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: .70em;
    text-align: left; /* IE hack Part 2 */
    border-top: 15px solid #d5d7db;
    border-bottom: 15px solid #d5d7db;

    Could it be there?

    Lorelle, I just write in spanish so I just want all posts to be justified. Cant beleive I cant find this on my own. lol

    ifinci, this can probably be done, but might require a lot of mutzing around. Might be better to add a quicktag to handle per-post justify; I know there’s some info in the codex about it, can’t find it real quick, just do a search for “add a quicktag”….

    OK. I found the solution. Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Justify text in posts’ is closed to new replies.