Center content every post in Wordpress

Discussion in 'WordPress' started by VTTE, Nov 25, 2008.

  1. #1
    Hi everyone,

    To create a consistent posting layout for my blog I would like the content of every post to be 'centered' whenever it is posted. Is there somewhere within the CSS script of my template that I can do this?
     
    VTTE, Nov 25, 2008 IP
  2. adultuserbars

    adultuserbars Peon

    Messages:
    762
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It requires you to edit the CSS for the theme you are using, especially if you centre it using the TinyMCE editor within WordPress, and when you view the post it isn't centred.
     
    adultuserbars, Nov 25, 2008 IP
  3. thundercow

    thundercow Well-Known Member

    Messages:
    246
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Try this.

    1. You must edit this file: bloggerstricks[dot]com/wp-content/themes/BlueSlide/style.css

    2. Find This:
    .postcontent{
    border-top: solid 1px #ccc;
    margin-top: 10px;
    }

    3. Change to This (adding "text-align"):
    .postcontent{
    border-top: solid 1px #ccc;
    margin-top: 10px;
    text-align: center;
    }
     
    thundercow, Nov 25, 2008 IP
  4. Ajucoolest

    Ajucoolest Well-Known Member

    Messages:
    616
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Rather than using text-align:center

    you should use text-align:justify;

    it looks good when text is justified
     
    Ajucoolest, Nov 26, 2008 IP