Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Page Width will Not Increase (MainWrapper)

    For the past 2 days I have been trying to widen the main wrapper, because it looks terrible at 750px. I have changed the stylesheet.css in my template using both 100% and 1024px and it does absolutely nothing. I have been trying to figure this out for 2 days straight, and nothing works. This is is supposed to be very simple, but when I edit anything in the mainwrapper, nothing changes and I don't understand why.

    www.westseedfarm.com

    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 1024px;
    vertical-align: top;
    border: 1px solid #9a9a9a;
    }

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Page Width will Not Increase (MainWrapper)

    you have a hard-coded 770px width in the first table of you template, probably in the tpl_header.pph in your common folder
    HTML Code:
    <body id="indexBody"> <div style="float:inherit"> <table width="770" border="0" cellspacing="0" cellpadding="0" align="center">   <tr>     <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFEC9D">           <tr>             <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">                 <tr>                   <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">                       <tr>                         <td><img src="includes/templates/Blossoming Beauty/images/img_home1.gif" alt="img_home1" width="242" height="180"/></td>                         <td><img src="includes/templates/Blossoming Beauty/images/logo.gif" alt="logo" width="239" height="180"/></td>                         <td><img src="includes/templates/Blossoming Beauty/images/img_home2.gif" alt="img_home2" width="289" height="180"/></td>                       </tr>                     </table></td>

  3. #3
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Page Width will Not Increase (MainWrapper)

    Just checked tpl_header.php and I don't see 770px anywhere, any other places it could be?

    EDIT: found it in tpl_main_page.php About to change it to 1024
    Last edited by westseedfarm; 12 Jan 2013 at 11:33 AM.

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Page Width will Not Increase (MainWrapper)

    actually, a lot of places , but you if you follow the trail inside the files, it should be in tpl a file loaded early in the page loading.

  5. #5
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Page Width will Not Increase (MainWrapper)

    It worked! However, my header is broken up into 4 different images and looks odd and separated now, how can I easily shift the images to the left?

  6. #6
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Page Width will Not Increase (MainWrapper)

    for the roses image, the lower part has a align right and a cell width of 320 px. you need to do the same for the upper part. after that you need to play around a bit to align the rest of the images, and table cells, to get them lined up again.

  7. #7
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Page Width will Not Increase (MainWrapper)

    When I click on that rose image using firebug, it shows me the "320" like you said, but I can't actually see this in stylesheet.css, I can only see it in the html code that firebug shows me. How can get access to that code?

  8. #8
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Page Width will Not Increase (MainWrapper)

    If it is not in the css files, you can find it directly in the template files.

  9. #9
    Join Date
    Aug 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Page Width will Not Increase (MainWrapper)

    Somehow the background was changed from black to white during all the changes. I have tried to replace the color in the stylesheet to no avail. I even tried to replace it with an image via this technique.

    body {margin: 0;font-family: verdana, arial, helvetica, sans-serif;font-size: 62.5%;color: #888787;background: #fff;}

    Change the code to:


    body {margin: 0;font-family: verdana, arial, helvetica, sans-serif;font-size: 62.5%;color: #888787;background-image: url(../images/your-background-image-name.jpg);}

    Nothing Works, and it looks pretty bad with white on the left and right side of the page (background).

    I want it to be a green or tan color, though extending the orange bar at the bottom would be great too.

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Page Width will Not Increase (MainWrapper)

    Zencart loads all stylesheets starting with 'style' and with the css extension it finds in the current template's css folder, so you have two sheets fighting each other (stylesheet.css and stylesheet1.css). Remove one or change its extension, and then you'll be able to style the site with the other.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 How can I increase the width of the display so my text area has more width.
    By westdh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Aug 2012, 12:50 PM
  2. increased width of mainwrapper in css, content did not expand (v1.3.7)
    By isaiah36 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Feb 2011, 08:10 PM
  3. Remove Right column on front page only - increase centercolumn width
    By ikernbecauseicare in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 7 Oct 2010, 07:46 AM
  4. How to increase page width
    By breck in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Oct 2008, 07:44 PM
  5. How to Increase Width of Product Page
    By kiddyrack in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jun 2007, 08:59 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