Forums

How Do I Center Post Title? (5 posts)

  1. microphobik
    Member
    Posted 5 years ago #

    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

  2. Kalessin
    Member
    Posted 5 years ago #

    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.

  3. microphobik
    Member
    Posted 5 years ago #

    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.

  4. frotzed
    Member
    Posted 5 years ago #

    Add this code to the very bottom of your stylesheet:

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

    That will center your post titles.

  5. microphobik
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.