• How do I make the title of my blog post appear in the center of the page, rather than to the left? While I’m asking, How do I center a graphic within the post?
    Any help will be very much appreciated. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Set the CSS of the container object:

    div.centered {
      text-align: center;
    }

    Then all text within that div will be centered. Works on graphics too.

    Thread Starter microphobik

    (@microphobik)

    Thank you for answering. Sorry to be a pain but where is that exactly? am I subbing something out or inserting that somewhere? I am a little tech challenged with this stuff. A few more details would really help. Thanks.

    Add this code to the very bottom of your stylesheet:

    div.post h2 {
    text-align: center;
    }

    That will center your post titles.

    Thread Starter microphobik

    (@microphobik)

    Hi, thanks but that didn’t work. I tried putting it at the bottom as well as in the content and I tried it as is as well as changing the tag to h1 as I thought my post titles were h1 tags. But nothing worked. any other thoughts? I’m desperate. I’d be happy to post code if someone tells me what to post.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How Do I Center Post Title?’ is closed to new replies.