Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Changed main layout width but side boxes not aligning properly

    Hello everyone.

    I've changed the width of my shop (e.g increased it to 90% by edit #mainwrapper in stylesheet.css) and changing in admin/configuration/layout settings (column width left and right boxes 100% and column width 20% as per instructions from zen cart.)

    If you take a look at my shop: http://actionshop.biz/shop/ - I need help in correcting 3 issues that are probably minor but are annoying me endlessly.

    We are using zencart 1.3.7

    (1) The top left box (categories) the boxes overlap a few pixels to the right.

    (2) The main center box seems to not be centered correctly and seems to align left a few pixels.

    (3) The right boxes are overlapping the main container a few pixels.

    Obviously I need to change or add some values to a css file?

    Any help would be most appreciated.

    Thanks

    Bruce

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changed main layout width but side boxes not aligning properly

    Add this to the end of your stylesheet and see what it looks like:

    #navColumnOneWrapper, #navColumnTwoWrapper {width: 93% !important;}

    This does not fix the problem, it just covers it up; but it gives an idea where to look.

    You have #navColumnOneWrapper and #navColumnTwoWrapper set to 100% of the column width in inline styles (which take precedence over stylesheets), and then have margins or padding which add to this. The column can't hold it, so it overflows. Change their width to 93% in admin and they should fit ok. To be completely safe here, you should eliminate the margins or padding and use margin: auto; which will center the boxes in the columns without specifying pixels.

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Changed main layout width but side boxes not aligning properly

    Thanks for that - it solved the problems.

  4. #4
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Changed main layout width but side boxes not aligning properly

    gjh42
    It seems that I too have done something to all the boxes (where you fill in information). All have moved to the left about .25 inch. I can see it in sign in, customer information, attributes etc.

    I do not know what I did that moved it. Any suggestions?

    I added to the end of my stylesheet the following code you provided and it did not do anything:

    #navColumnOneWrapper, #navColumnTwoWrapper {width: 93% !important;}

    My shop is http://sawhorsejewelry.com and am using ZC 1.3.8a.

    Thanks

  5. #5
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Changed main layout width but side boxes not aligning properly

    Problem fixed.

    In my stylesheet I had an error under LABEL.inputLabel
    I had the following:

    LABEL.inputLabel {
    width: 1em;
    float: left;
    }

    It should have been:
    LABEL.inputLabel {
    width: 11em;
    float: left;
    }

    The above width correction fixed everything.

  6. #6
    Join Date
    Mar 2008
    Location
    Belgium
    Posts
    115
    Plugin Contributions
    6

    Default Re: Changed main layout width but side boxes not aligning properly

    I have a simular problem.
    Main page is ok
    but when you go to to an item or shopping cart you get this.
    An overflow (or shall I say under) of center text under the right side boxes.

    I tried setting Colum boxes to 93%
    and Colums to 20%
    Yet no result.

    Please keep in mind: I only know how to do changes in *.php & *.css for about 2 weeks.

    Any help & advise is most welcome.

  7. #7
    Join Date
    Mar 2008
    Location
    Belgium
    Posts
    115
    Plugin Contributions
    6

    Default Re: Changed main layout width but side boxes not aligning properly

    I have a simular problem:
    -Homepage looks ok
    -but when you down to items or shopping cart the center box runs on under part of the right column.

    I've changed:
    the column width left and right boxes to 93% (before 150px)
    and column width to 20% (before 150px)
    Yet no change.
    As you can see here.

    As I only know for two weeks how to edit *. php & *.css, I don't see what is wrong.

    Any help or advise is very welcome.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changed main layout width but side boxes not aligning properly

    The error you mention occurs in IE6 but not in Firefox; however, there are header element spacing/overlap errors in Firefox that do not occur in IE.

    Your page HTML does not validate (W3C Markup Validation Service ).
    Part of the problem is that you have the leaderboard code before the doctype comment and before the opening <html> tag. This is causing many many other errors.
    HTML Code:
    <center><!-- Start Leaderboard - 728x90 Code -->
    <script src="http://cds.adecn.com/add/script.js?v=2.2;siteId=66343;spotId=11783;width=728;height=90">
    </script>
    <!-- End Leaderboard - 728x90 Code --></center>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="nl">
    <head>
    <title>Noveenkaarsen : Zen Cart!, The Art of E-commerce</title>
    You need to relocate that code first, and then see what other errors there may be.

  9. #9
    Join Date
    Mar 2008
    Location
    Belgium
    Posts
    115
    Plugin Contributions
    6

    Default Re: Changed main layout width but side boxes not aligning properly

    Oops, I didn't see my first post and accidently posted it again. Sorry for that.

    The HTML-change is not an option.
    I have a free webhosting on the condition that there is a banner on top of the page.
    When I try to fix the problem in the index page and upload it, it gives a better error report but that's because it finds a correct order in the edited part.
    Editing also ends up in two banners.

    I've tried to fix all with the stylesheet. So far so good in IE7, in Netscape the white links in the header fall into the white part of the logo. I plan to fix this with a color change.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changed main layout width but side boxes not aligning properly

    You can still have the banner displaying at the top of your page, but the code for it needs to be relocated because it is breaking the display. The HTML change is not an option, it is essential.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Menu bar and side boxes not aligning properly in Firefox browser.
    By fkalanda in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Dec 2013, 02:01 AM
  2. button links not aligning properly in side category box
    By dellvostro in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Oct 2008, 08:45 PM
  3. Aligning Side boxes
    By Blue! in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Jul 2006, 01:46 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