Adding a breakpoint for text alignment.

  • Author
    Posts
  • #3043628

    delifort
    Member

    Hey.

    I want to make all post paragraphs justified by default, but left aligned whenever screen width is smaller than 800px. That’s what I added to Custom CSS:

    @media screen and (max-width: 800px) {
      .entry-content > p {
        text-align: left;
      }
    }

    The text stays justified on all screens though. I suppose I did something wrong – not an expert in CSS, unfortunately…
    I’ll really appreciate any help.

    The blog I need help with is www.delifort.com.

    #3043757

    tophatt29
    Member

    Hey delifort,
    It looks like the website you are looking for help with is not hosted by WordPress.com, but rather a sekf hosted site through wordpress.org.
    Here is some info on the difference as well as a link to their support.
    Good luck!

    You can seek help for WordPress.org sites here: https://wordpress.org/support/

    You can find WordPress.org support documents here https://codex.wordpress.org/Main_Page

    And for app support please check https://apps.wordpress.org/support/

    Read the difference between WordPress.com and WordPress.org here https://en.support.wordpress.com/com-vs-org/
    Best of luck!

The topic ‘Adding a breakpoint for text alignment.’ is closed to new replies.