[resolved] How can I Center Align my entire blog? (8 posts)

  1. RachelSDuvall
    Posted 5 years ago #

    Could someone please take a look at RiversideOpenView.com and let me know what I need to do in order to have my whole blog appear in the center of the screen rather than to the left.

    I found some information in other threads here and from other sources, but they did not solve my problem.

    I would greatly appreciate any help.

  2. racer x
    Posted 5 years ago #

    Try editing this section in your css file adding the two new lines for width and margin:

    .container {
    	background:url(images/container_bg.jpg) repeat-x;
            width:990px;  /* I am not sure of this width */
            margin:0 auto;  /* this will center it */
  3. lilqhgal
    Posted 5 years ago #

    You need to add margin: 0 auto; to the stylesheet. If you have a page wrapper div, that would do it. If not, you'll have to add that to each containing div (like a header, content, footer, etc.). Try that and see if it works for you, and if not I can probably help further.

  4. RachelSDuvall
    Posted 5 years ago #

    Thank you so much. I seem to have made the header work with what you suggested. So I'm assuming that means I don't have the wrapper div. Sorry, very new to all of this. Is there a simple way to add a wrapper div rather than adding margin: 0 auto; to each of those? For future reference.

  5. RachelSDuvall
    Posted 5 years ago #

    @racer x: For some reason your post didn't show up when I refreshed the first time. But the code you gave me worked perfectly. Much thanks!

  6. racer x
    Posted 5 years ago #

    No problem. I was wondering why your site wouldn't center since you had margin:0 auto in place, but it was a container "class" that needed it.

    If you do a lot of styling or editing of wordpress themes(or any css at all) you should look into firebug. I was able to edit your site's CSS file live and see what css needed to be changed.

  7. RachelSDuvall
    Posted 5 years ago #

    @racer x: Thank you! I've been playing with firebug today. I have been messing around with WordPress themes for about a year now. Mainly all I have been able to do is edit code through trial and error. So far, no disasters. Ha!

    But this will help me so much. It will at least cut down on the time it is taking me to check what I am doing.

  8. dec2g
    Posted 4 years ago #

    Having the same issue and have tried everything listed above. Please advise. Site is: http://www.pigeon-forge-cabins-now.com


Topic Closed

This topic has been closed to new replies.

About this Topic