WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] I want my content of the post to be displayed in the center of the post.

[Resolved] I want my content of the post to be displayed in the center of the post.

  • 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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Michael
    Forum Moderator

    @alchymyth

    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.

    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.

    Michael
    Forum Moderator

    @alchymyth

    try to clear the browser cache – by pressing ‘CTRL F5’ or by reloading the page (a few times) or whatever your browser needs…

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

    Michael
    Forum Moderator

    @alchymyth

    .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;}

    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.

    Michael
    Forum Moderator

    @alchymyth

    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.

    Thank you. The problem is now resolved.

    table.center {
        width:auto;
        margin-left:auto;
        margin-right:auto;
      }
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] I want my content of the post to be displayed in the center of the post.’ is closed to new replies.