• Resolved kupili

    (@kupili)


    I have problems with centering titles on posts. As I figured, the following code is preventing title centering:

    .post h1, .post h2 {
      display: inline-block;
    }

    What is that meant to do? Can I safely override it?

    If I set it as block then it is ok, but as soon as I add inline the text is left aligned.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Just adding the following CSS will center the post titles on post pages:

    h1.entry-title {
        text-align: center;
    }

    Let me know. ??

    Regards,
    Hardeep

    Thread Starter kupili

    (@kupili)

    I am sorry for not being clear enough. The main title is not a problem. The problem are h tags in content.

    Hi kupili,
    Set it as block by all means, if it works for you.
    Do give a link to your site. It will help analyse for further questions.

    Thread Starter kupili

    (@kupili)

    Thanks for info.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with centering post titles’ is closed to new replies.