WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] why two words are broken in two lines (6 posts)

  1. TJ1
    Member
    Posted 1 year ago #

    In my website: http://www.minutify.com
    for each blog post there is a category. It is shown as: "POSTED UNDER" under the figure of the blog post.

    My question is why "POSTED UNDER" is not shown in one line, and it is shown as:
    POSTED
    UNDER

    And how can I change it to: "POSTED UNDER" so both words are in the same line.

    Thanks for the help.

  2. jasonpaulweber
    Member
    Posted 1 year ago #

    Your margins aren't big enough.

    If your theme has a custom CSS option, add this in there:

    .category-meta {
    width:100px;
    }

    Or whatever width works for you. Then refresh your browser.

  3. TJ1
    Member
    Posted 1 year ago #

    Jason: thanks for the response.
    My theme does not have a custom CSS option, but I added what you said to the end of my style.css. I increased 100 to 200, but still it is not working.

  4. jasonpaulweber
    Member
    Posted 1 year ago #

    Somewhere in your stylesheet, there is this class:

    .category-meta

    It will be near the
    .entry-meta cf
    class ...
    and the
    .clock-meta class, which controls your "Posted On" ...

    Don't just add it again ... find it in your stylesheet and change it there. And delete the one you added. And add the width attribute, and don't forget to put a semicolon after it.

  5. TJ1
    Member
    Posted 1 year ago #

    Jason:

    Thanks a lot for the help.
    Actually I used what you said before and added "!important" to it, i.e it is:

    .category-meta {
    width:100px !important;
    }

    And now it is working.
    Thanks again for your help.

  6. jasonpaulweber
    Member
    Posted 1 year ago #

    Oops -- yes, I forgot about that. !important overrides things. Good thinking. You're welcome. Glad you got it working!

Topic Closed

This topic has been closed to new replies.

About this Topic