Thread: center layout

Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default center layout

    Hello,
    I'm trying to center my layout here:
    http://dropyourdrawers.brinkster.net/shop/
    It looks centered and great in IE but Firefox moves it to the left. Please help!

  2. #2
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: center layout

    i figured it out on my own:)

    if your having the same problem i was with the layout only being centered in IE and not firefox go to your CUSTOM stylesheet and find:

    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    margin: auto;
    padding: 0em;

    set the margin as auto.

    doing so centered my layout in firefox. but it also centered my header logo which i did not want so..

    #logoWrapper{
    width:192px;
    height:64px;
    margin: 0; background-image:url(yourwebsite.com/images/yourlogo.gif);
    background-repeat:no-repeat;

    i set the margin there as 0.

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

    Default Re: center layout

    Thanks for posting solution to your problem.
    Am sure will help other forum members.
    Well done!!

  4. #4
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: center layout

    Thank you. It works great!

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

    Default Re: center layout

    When you have a long list of selectors and you want to change a property for one of them, don't change the whole list - that will change all the other selectors too, and may require fixes for them as you have observed.

    Separate out the one selector you want to change and do what you want with it in its own rule.

    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #popupAdditionalImage, #popupImage {
    margin: 0;
    padding: 0em;
    }

    #mainWrapper {
    margin: auto;
    padding: 0em;
    }
    Better yet, since #mainWrapper already has a separate rule, remove it from the group rule and put the new property in the existing #mainWrapper rule. Keeping things in one place minimizes confusion.

 

 

Similar Threads

  1. center align grid layout
    By abstract in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 May 2011, 08:19 PM
  2. Customize Center Page Layout
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 50
    Last Post: 17 Feb 2008, 10:06 PM
  3. Center boxes layout
    By jenjen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Dec 2007, 06:49 PM
  4. Center Page Layout
    By a4tech in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2007, 08:15 AM
  5. Category Layout in center
    By 240racr in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Nov 2006, 09:28 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