Need help? Check out our Support site, then


How to center-align WP page?

  1. my wp is andrewgiordano.net. I bought the custom CSS. Can anyone tell me how to align my wole wordpress to always be centered? Thanks in advance!

    The blog I need help with is andrewgiordano.wordpress.com.

  2. Hi Andrew,
    I flagged this thread so our Moderators will move it to the correct forum for you.

    CSS editing will allow you to stylize the appearance of themes you find here > Appearance > Themes, but it does not allow you to change the functionality, by editing the underlying template. Also note that CSS is theme specific, so you cannot use the CSS stylesheets from other themes with the themes here at wordpress.COM.

    Since there is no official support for the CSS upgrade, and precious little volunteer support you must be prepared to do the work on your own and be patient while waiting for help

    Here's a link to a post that's important to read http://csswiz.wordpress.com/2009/10/15/if-you-have-the-wp-com-css-upgrade/ It was published by a volunteer who will most likely be the one who will help you when he can.

  3. @andrew - if you get a bit of code, feel free to paste it here and someone can probably help you validate it, but it's best to give it a shot yourself first.

    Talking about centering, which exactly? The entire block of content (header, body, footer) or are you referring to centering the text inside?

  4. Click his name to view page. it's on the left side he he he

  5. @andrew the theme, Redoable Lite you've chosen is a left-aligning theme - it's not possible to center it. Choose another theme under Appearance > Themes.

    @marte1e - thanks! That's probably what he wanted.

  6. I wouldn't normally suggest messing directly with the body element like this but seeing as there is nothing else containing everything you can achieve what you want with:

    body {position:absolute; left:50%; margin-left:-495px;}

    I haven't tested it in anything other than firefox though. I did look at positioning all the elements individually but it was too much like hard work, sorry!

    lh

  7. I would agree with halluke about the only way to achieve this is buy affecting the "body" tag. However, I wouldn't use "position: absolute" for it. Since the width of the contents and sidebar is 1000px, I would do it like this:

    body {
    margin: auto;
    width: 1000px;
    }

    That should adjust better in most screen resolutions.

  8. Yeh that might be a better idea. It will choke in IE5.x but that's not much of a concern these days.

    lh

  9. I haven't code for IE5 in a loooong time to really remember if it would actually choke... but it's 2010 so, if it does, I don't care.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags