WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Centering text in main body (5 posts)

  1. chaseblackwell44
    Member
    Posted 4 years ago #

    Stupid question, but I've tried everything I know.

    Essentially I would like the post content text, not the title or date or posted in section, to be centered in the body.

    http://www.chaseblackwell.com

  2. vtxyzzy
    Member
    Posted 4 years ago #

    If you just want the text area wider, try changing the width parameter in #content around line 79 in style.css from 'width: 540px;' to 'width: 700px;'.

    If you want to center the text, but keep it the same width, add 'margin-left: 50px;' and 'margin-right: 50px;'. Play with the numbers until it looks the way you want.

  3. chaseblackwell44
    Member
    Posted 4 years ago #

    Great, but is there any way to keep the title and postmetadata frommoving along with the text?

  4. vtxyzzy
    Member
    Posted 4 years ago #

    Take out the margin-left under #content and use this at line 118;

    .narrowcolumn .entry, .widecolumn .entry {
    line-height:1.4em;
    margin-left:100px;
    padding:10px 0 0;
    }
  5. chaseblackwell44
    Member
    Posted 4 years ago #

    Thanks very much, once again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.