Jump to content
Sign in to follow this  
lulajack

Left Align Entire Website

Recommended Posts

Rob    547
Rob
The basic markup: Try this in your custom code CSS: [code] body { text-align:center; /* for IE */ margin:0 auto; /* for the rest */ } div#wrapper { text-align:left; width:960px; /* or a percentage, or whatever */ } [/code] Change "wrapper" for the name of your enclosing div around the whole page (if you don't have one, then you need one ;). Use Firebug to find the appropriate wrapper. In your website, it could be either "site", "page" or "page-canvas" (without quotes ( " ))

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
lulajack    0
lulajack
Great! Thanks so much. That did half the trick. What needs to happen now is that the backgroudn image needs to be right aligned as it was before... how can I do this? This is what its currently looking like: http://deeptest.co.za/dekloof/ To jog your memory this is how it needs to behave: http://www.thetestkitchen.co.za/ Really appreciate your help :)

Share this post


Link to post
Share on other sites
lulajack    0
lulajack
I made the width 100% but still does not wrap properly. Left margin still comes into play on a larger monitor...?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi Lulajack, Try adding this to Platform Settings --> Custom Code --> CSS Rules #site { background: url("http://deeptest.co.za/dekloof/wp-content/uploads/2011/09/bg11.jpg") no-repeat scroll 100% 100% transparent; } body #page { background-color: transparent !important; }

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
lulajack    0
lulajack
Thanks Dannyh, but nothing different happened? This is the code I am using: body{ margin-left: 0px; font-size: 87%; line-height:1.6em; height:100%; padding-top: 0px; text-align:center; /* for IE */ margin:0 auto; /* for the rest */ } div#page { text-align:left; margin-left: 0px; width:960px; /* or a percentage, or whatever */ } #site { background: url("http://deeptest.co.za/dekloof/wp-content/uploads/2011/09/bg11.jpg" no-repeat scroll 100% 100% transparent; } body #page { background-color: transparent !important; } Not sure what I am doing wrong... kinda a newbie at css!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Ok, I see what the problem is, first of all can you remove the background image you have uploaded in Design Control. Then, copy this code into your CSS rules section, the code above I gave you had its format slightly altered. http://pastebin.com/8HTnQi35

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
No problem, glads its working for you.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×