WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I want my content of the post to be displayed in the center of the post. (9 posts)

  1. Ovidiuxxxc
    Member
    Posted 1 year ago #

    I want my content of the post to be displayed in the center of the post, not in the left side.

    This is my WordPress blog.

    Thank you in advance.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the margin in this style (in style.css about halfway down) is stopping the images from geting centered:

    .article img, img.article
    {
      border-style: solid;
      border-width: 0px;
      border-color: #C0BE9B;
      margin: 1em;
    }

    remove margin: 1em;

    for the tables, you might need to add new formatting;
    try to work with a browser inspection tool such as Firebug to find out which styles you need to edit.

  3. Ovidiuxxxc
    Member
    Posted 1 year ago #

    Thank you for your answer Sir. I did removed margin: 1em; but the images are still the same, in the left side. It is not working...

    I want to mention that in the Internet Explorer browser, it appears normal. Everything is in the center of the post, but in the others Browsers, they aren't normal.

    I don't know what to do anymore, I am not a specialist. I really appreciate your help. Thank you.

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    try to clear the browser cache - by pressing 'CTRL F5' or by reloading the page (a few times) or whatever your browser needs...

  5. Ovidiuxxxc
    Member
    Posted 1 year ago #

    You right Sir. It is working now. :D I did cleared my HISTORY and it works. Can you please try to help me with the TABLES?

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    .article table { margin: auto; }

    try to add this after the other .article table styles in style.css (about half-way down)

    ps:

    before you aks:

    to center the post title:
    .article h2.PostHeaderIcon-wrapper { text-align:center;}

  7. Ovidiuxxxc
    Member
    Posted 1 year ago #

    All respects for you Sir. It it working but the content from the table is not CENTERED.

    The table frame is extended. If it's possible, can it be CENTERED the table and the content too without the table extension?

    Thank you.

  8. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    try to ask at a dedicated css forum http://csscreator.com/forum

    fundamental formatting help is not one of the core scopes of this WordPress forum.

  9. Ovidiuxxxc
    Member
    Posted 1 year ago #

    Thank you. The problem is now resolved.

    table.center {
        width:auto;
        margin-left:auto;
        margin-right:auto;
      }

Topic Closed

This topic has been closed to new replies.

About this Topic