WordPress.org

Ready to get started?Download WordPress

Forums

Centering Post Titles (4 posts)

  1. RyanMaxwellHHK
    Member
    Posted 4 years ago #

    Hello,

    I'm using the Dark Ornamental for my WP blog http://www.hip-hopkings.com.

    When I make a new post, the title appears in a red box, however is automatically left-aligned. How would I change this, so the post title is centered in the box?

    Thanks in advance.
    Ryan

  2. Peter Boosten
    Member
    Posted 4 years ago #

    #content h2 {
    background:transparent url(images/h2_post_title.png) no-repeat scroll center center;
    color:#FFFFFF;
    padding:10px 0 10px 30px;
    text-align:center;
    }

  3. RyanMaxwellHHK
    Member
    Posted 4 years ago #

    Does this need modifying in the content.php file?

  4. Peter Boosten
    Member
    Posted 4 years ago #

    No, just your css file (style.css)

    Peter

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags