[SOLVED] How to Center Layout
Sorry for the noob post, but I tried searching on the forums and couldn't come up with an answer. How do you center the entire layout? I tried adding "text-align: center;" to the Body and Layout style, but neither worked.
Thanks! |
Can you please post a URL to your site? By default the layout IS centered so I am not sure what you are referring to.
|
http://hvmac.dreamhosters.com - I just remembered that I copied over the settings from another site I created using Atahualpa a while back and I can't seem to find the post that told me how to left align the layout. I've been looking through all my layout and body style edits as well as the CSS inserts and can't seem to find where it is. Thanks in advance for any help.
|
What version of Atahualpa? How did you copy over the settings?
|
WP 3.01, Atahualpa 3.53. I copied it over from another 3.53 site using ATO > Export/Import Settings, exporting from one site and importing into the other. The other site is http://www.hvwac.net
|
Could you attach a copy of those setting to a reply (use the paper clip icon)? I could then take a look at the setting and let you know what I find.
|
1 Attachment(s)
Here you go. Thanks again.
|
When I imported the style my layout did not center so I guessed the centering was changed in one of the theme files.
Take a look at css.php and see if you have something like the following. Yours will probably have a margin-left: 10px. Just change margin-left: 10px; to margin-left: auto; Importing the style would not have done this so I am not sure what happened. /*-------------------- WRAPPER for MIN / MAX width --------*/ div#wrapper { text-align: center; margin-left: auto; margin-right: auto; display: block; |
Thank you very much! That was it.
|
That's great... Looks good.
I have a question... If you put fixed at the end of your background line in ATO>Body, Text, & Links like the code below only the center column will scroll. I often like that effect for better readability but would like to get other's oppinions. Would you mind trying that and let me know what you think? HTML Code:
background: #aaaaaa url("http://hvmac.dreamhosters.com/wp-content/themes/atahualpa/images/background.jpg") repeat-y center center fixed; |
Larry - I tried out your suggestion. While it took a little bit for me to get used to it, I like it better and decided to stick with it. Thanks for the suggestion and all the help.
|
All times are GMT -6. The time now is 07:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.