Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2012
    Posts
    12
    Plugin Contributions
    0

    Default How do I change the width of my template?

    I bought the Zen Cart eBook 2nd edition and followed the steps and information from pages 282 "Creating Custom Templates" through 286. I have been through the book and Wiki site, Top 10 Questions asked by new Zen CartŪ Users, I still cannot figure out how to change the width of the entire page. I have managed to find how/where to change the images and text, but cannot find anything (particularly in the .css) where I can call out a value. Ideally I would like a page that is 900px wide. But for the life of me, I can't find where to make that happen. Can anyone please help? I've already spent a day, just on this one thing.

    Thanks in advance!

  2. #2
    Join Date
    Jan 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: How do I change the width of my template?

    I found the answer!!! It is on the stylesheet.css, specifically this for those like me who have never worked with anything but basic HTML:
    /*wrappers - page or section containers*/
    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 900px;
    vertical-align: top;
    border: 1px solid #9a9a9a;
    }

    The default width is 750px; Change the number and you change the width of the page column! I guess I should have spent a few more minutes looking before I posted.

  3. #3
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: How do I change the width of my template?

    You can also use a percentage so that the width expands and contracts to fit the visitor's monitor.

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do I change the width of my template?

    Quote Originally Posted by RescoCCC View Post
    You can also use a percentage so that the width expands and contracts to fit the visitor's monitor.
    IF the rest of your template is designed to utilize that extra width in a sensible manner. And IF you test the result on a large monitor at a variety of different browser window widths (and in different browsers, of course) to make sure the result is what you expect. Jus' sayin'.

    Rob

  5. #5
    Join Date
    Jan 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: How do I change the width of my template?

    Rob,

    Your artcardshop.com site is BEAUTIFUL. How long did it take you to get that look? The text and navigation is simple and EASY to read! I don't mind a few boxes in the left and right columns to highlight something special, but your layout is configured beautifully. I am making the assumption that you did more than change a few templates and stylesheets. After seeing your site and knowing how long I have already spent on trying to get the one I am working on to look halfway decent, I now feel totally dejected!

    Pam

  6. #6
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: How do I change the width of my template?

    Quote Originally Posted by rstevenson View Post
    IF the rest of your template is designed to utilize that extra width in a sensible manner. And IF you test the result on a large monitor at a variety of different browser window widths (and in different browsers, of course) to make sure the result is what you expect. Jus' sayin'.

    Rob
    I haven't seen any templates that have any problem with using a percentage in the mainWrapper width since all the template files use mainWrapper.

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do I change the width of my template?

    Quote Originally Posted by RescoCCC View Post
    I haven't seen any templates that have any problem with using a percentage in the mainWrapper width since all the template files use mainWrapper.
    I wasn't saying there would be a problem. I was saying that you needed to check to make sure the site looked the way you expected in lots of different-sized browser windows.

    Rob

  8. #8
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do I change the width of my template?

    Quote Originally Posted by pgram View Post
    ... Your artcardshop.com site is BEAUTIFUL. ...
    Thanks for the kind words Pam. I'll PM you the details.

    Rob

 

 

Similar Threads

  1. Template: Change width of separators, how?
    By katies in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Nov 2009, 09:41 PM
  2. How do I change the width of the template?
    By yvonne8 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Jul 2008, 12:49 AM
  3. How Do I Change the Width of the Template?
    By badan in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 10 Jan 2008, 10:14 AM
  4. How to Change width of Template??
    By taguchi_isara in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Nov 2007, 06:49 AM
  5. How do I change the width of THIS template
    By nudelady in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Oct 2006, 09:43 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