WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to align text on both sides with images in the post (7 posts)

  1. ehteshamuddin.syed
    Member
    Posted 1 year ago #

    Hi folks,

    I'm new to word press and trying to edit my first post but quickly ran in to problems, i have a post with few images in it but the text around the image only aligns to left or right but doesnt align on the both sides. I'm using Oxygen theme, not sure how to go about fixing it

    Need some help here...

    Thanks

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to a page where this happens?

  3. ehteshamuddin.syed
    Member
    Posted 1 year ago #

    I have not hosted the site , Its on my local pc. Im trying to align text like the way it's done here

    If you notice, right next to image the text is very nicely aligned on the left and right but when I try to do the same it only aligns right,left or center leaving one end un aligned.

  4. ehteshamuddin.syed
    Member
    Posted 1 year ago #

    http://www.bitrebels.com/social/8-secrets-to-writing-faster-blog-posts-infographic/

    Please look for text next to image , I'm trying to align it just like that

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Okay, but just FYI, justified text is generally not recommended for websites. You should also be using a custom CSS plugin or child theme to make changes to your CSS. Jetpack is a good option for a plugin. Otherwise your changes will be overwritten and lost when the theme is updated.

    That said, you can change the alignment by adding this to the custom CSS (or the bottom of your existing stylesheet):

    p {
        text-align: justify;
    }
  6. ehteshamuddin.syed
    Member
    Posted 1 year ago #

    Thank you your help , WPyogi.

    The theme(oxygen) I'm using provides option to add custom css, I have updated the above code but still the same, it continues to align the text only on the left...

    I also downloaded the jet pack plugin and tried using the custom css option but it throws up error " You do not have sufficient permissions to access this page. " after clicking on edit css button.

    looking for some further help...

  7. ehteshamuddin.syed
    Member
    Posted 1 year ago #

    I updated the code directly on style.css document of the theme and it worked, thank you for your time.

Topic Closed

This topic has been closed to new replies.

About this Topic