Results 1 to 8 of 8
  1. #1
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Changing the page width

    Quote Originally Posted by budfox View Post
    It's quite simple.

    Design for 750px wide (or thereabouts), and know how your site will look to all users, or use a fluid layout.

    I prefer the former.

    Don't forget we are talking e-commerce here. People want easy navigation, speed, good images, security and confidence that you'll deliver the goods.

    Zencart sites don't have to be works of art. Amazon isn't, or Play.com, or plenty of others.

    Nothing annoys punters more than horizontal scrolling, and in my opinion, a site that needs it is a bad site.
    Hello. You mentioned that you designed your websits at 750 wide. My site (www.aaadisplaygroup.com) is too wide and I cannot figure out how to change it. I have tried changing the width setting in the stylesheet.css but that did not seem to have any effect. Could you please point me in the right direction? I assume there is not faciility for auto scaling based on the user's screen resolution.
    H. Light
    Florida

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Screen Resolution IS important!

    Quote Originally Posted by hllight View Post
    Hello. You mentioned that you designed your websits at 750 wide. My site (www.aaadisplaygroup.com) is too wide and I cannot figure out how to change it. I have tried changing the width setting in the stylesheet.css but that did not seem to have any effect. Could you please point me in the right direction? I assume there is not faciility for auto scaling based on the user's screen resolution.
    Stylesheet
    Code:
    /*wrappers - page or section containers*/#mainWrapper {	width: 950px;	margin: 0px auto;/*		background-color: #ffffff;	text-align: left;	width: 915px;	vertical-align: top;	border: 1px solid #ff0000;*/		}

  3. #3
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Re: Screen Resolution IS important!

    Quote Originally Posted by misty View Post
    Stylesheet
    Code:
    /*wrappers - page or section containers*/#mainWrapper {	width: 950px;	margin: 0px auto;/*		background-color: #ffffff;	text-align: left;	width: 915px;	vertical-align: top;	border: 1px solid #ff0000;*/		}
    Thanks for your quick response. I tried that and it didn't do a thing. It is set that way right now.
    I changed 950 to 800. The info your you described after "auto;" is commented out.

    /*wrappers - page or section containers*/
    #mainWrapper {
    width: 800px;
    margin: 0px auto;
    H. Light
    Florida

  4. #4
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Re: Screen Resolution IS important!

    Actually, I was wrong. I renamed the original file rather than overwrite it. For some reason, zencart was smart enough to know that and read the old file that I called stylesheetORIG.css. However, the change resized and shifted the screen to the right. Looks like I am going to have to hire someone to fix it.
    Thanks for you help.
    H. Light
    Florida

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

    Default Re: Screen Resolution IS important!

    In case anyone else stumbles into this thread...

    ALL stylesheets in the css folder for your template will be read by Zen Cart if their name ends in .css -- so if you want to leave one there for some reason but exclude it from ZC's consideration, simply rename it to remove the .css ending. Something like stylesheet.orig will work fine.

    Rob

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Screen Resolution IS important!

    Quote Originally Posted by rstevenson View Post
    ALL stylesheets in the css folder for your template will be read by Zen Cart if their name ends in .css -- so if you want to leave one there for some reason but exclude it from ZC's consideration, simply rename it to remove the .css ending. Something like stylesheet.orig will work fine.
    This is not completely accurate. There are a number of naming conventions that determine which stylesheet is loaded for page, product, category, language, etc. Only stylesheets matching the criteria for the specific page being loaded will be included.

    A detailed explanation of this can be found in the css readme file in the docs folder that comes with each Zen Cart release package.

    However, rstevenson's point about taking care about what stylesheet live in a css folder is valid. I'd go further, any file that is a backup rather than not intended to be executed should not be kept on a live site. Zen Cart has a number of folders where it loads (or considers loading) all the files, and unless you know how to avoid it backups are always at risk of being mistaken for live files and used inappropriately.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    May 2007
    Location
    Port Charlotte, FL
    Posts
    125
    Plugin Contributions
    0

    Default Re: Screen Resolution IS important!

    GREAT information! I did not realize that. Thank you so much!
    H. Light
    Florida

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

    Default Re: Changing the page width

    This is not completely accurate. There are a number of naming conventions that determine which stylesheet is loaded for page, product, category, language, etc. Only stylesheets matching the criteria for the specific page being loaded will be included.
    You're right of course. I was being a little too emphatic, and not thinking about the page- or category-specific possibilities.

    Rob

 

 

Similar Threads

  1. changing the width of my main page
    By Dale Dugas in forum Templates, Stylesheets, Page Layout
    Replies: 19
    Last Post: 15 Apr 2011, 06:04 PM
  2. change width on the categories page (price width)
    By oberheimer in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2010, 05:53 PM
  3. Help with changing the width of page
    By ert0000 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Oct 2009, 10:35 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