Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default Centering All Content

    So thanks to this wonderful forum, I've managed (after many hours) to get my store looking pretty much how I want it. The only problem I'm having is that when I have the layout boxes on the left, the whole content isn't centered below the top logo.

    http://www.angelalucier.com/store

    In all reality it's only a small issue, but being as OCD as I am about symmetry and things being even, it bugs me. So if anyone can point me in the right direction on how to get the content centered (if possible), I would be much obliged!

  2. #2
    Join Date
    Mar 2006
    Posts
    117
    Plugin Contributions
    0

    Default Re: Centering All Content

    I could just be misunderstanding what you are asking but your logo is centered across your cart.

    If you want it to be centered just over the left column and center column and you don't plan on using the right column you could redo your header_bg.jpg image to a width of 610 (760px less the size of the right column) and it would appear centered over all of the visible content.

    Or you could turn off the right column in ADMIN | LAYOUT SETTINGS and your center content would stretch to fit the area under the existing logo.

  3. #3
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Centering All Content

    Alright...I tried your second solution, which worked, but then the bottom footer (Home, copyright etc.) wasn't centered under the center content. I tried your first solution (which is what I have now, http://www.angelalucier.com/store )...which is basically what my original intention was, but I wanted to have the entire thing centered on the page (right now it's off to the left).

    Is there a way to move all of the content (everything) so it's all centered?

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Centering All Content

    You will need to turn off the right column as instructed above then you can pad the left side of the footer to the width of the left column.

  5. #5
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Centering All Content

    Alright, don't hate me for asking this haha...but how/where do I add padding to the left side of the footer? I got the whole thing centered now, it looks great (thanks guys!)...I just have to move the footer over now...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Centering All Content

    1. open the page in your browser
    2. View Source
    3. look for your footer contents (ie: "powered by" is some of the text in your footer)
    4. note the DIV "id" related to that section is "siteinfoLegal"
    5. add padding for that selector in the stylesheet, equal to the width of your left column (which appears to be 150px?):
    Code:
    #siteinfoLegal {
    padding-left: 150px;
    }
    6. next you'll be back to ask the same question about your "home" link. so, do the same thing, searching for "home". Hint: since it's in the footer, it'll be just a few lines above the siteinfoLegal stuff you found earlier. You'll see that it's contained inside the "navSuppWrapper" div.
    7. add padding for that selector to your stylesheet.
    8. You'll notice that 150px seems to be too much for that ... so try 80:
    Code:
    #navSuppWrapper {
    padding-left: 80px;
    }
    For most other customizations to visual appearance, use the same concept.





    BTW - just posted the same tips in the wiki
    Last edited by DrByte; 8 Jun 2006 at 09:20 PM.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Centering All Content

    Thanks everyone so much!!

 

 

Similar Threads

  1. Need help centering content on main page..
    By WWDetail in forum General Questions
    Replies: 6
    Last Post: 26 Feb 2014, 09:05 PM
  2. Centering Content in Categories Layout
    By Ravyn in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Oct 2013, 06:41 PM
  3. Centering certain content in Product Info Display
    By Ravyn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Feb 2011, 01:57 PM
  4. Main Page content not centering right
    By coolscrapbook in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Nov 2010, 02:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg