Justify only the body content

  • Loris

    #1832

    Hello (and thanks for this amazingly customizable theme) ,

    I do have a small problem : I want the body text (and only that one) justified for the reading ease it gives.

    I found how to justify the whole content in the personalized CSS section (where you can add code to the css file in the graphene options) , by adding that line :

    #content { text-align: justify; }

    BUT it justifies the whole blog content, including the right section, which is not very nice for the overall impression. I’d like to know if there’s anything I can do to justify only the body content…

    Mod

    Kenneth John Odle

    #17292

    BUT it justifies the whole blog content, including the right section

    That’s because the content is basically everything between the header and the footer. Try something like this:

    .entry {text-align:justify}

    That targets just the post content.

    Good luck!

    Ken

    Loris

    #17293

    Thanks a lot Ken !

    This worked exactly how I wanted it to work. Hopefully this will help others, as the answer to that question wasn’t already on the forum 😉

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!