Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default How to add more space above mainwrapper?

    Hello,

    I like to add some space above mainwrapper, but when i make some changes in index.css nothing seems to change on website.

    I also found few shop who did it and inspected them with firebugs.
    Here is what i did:

    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 80%;
    vertical-align: top;
    border: 1px solid #9a9a9a;
    margin-bottom: 25px;
    margin-top: 25px;

    as u can see i just added margin bottom and top to mainwrapper, but i cant see difference on live website

    I hope someone know the solution

    link: www.witgoedextra.nl/wxt

    Tnx

  2. #2
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Hoe to add more space above mainwrapper?

    Plz delete this thread i made new one.!!!

    Tnx

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Hoe to add more space above mainwrapper?

    If you look at your stylesheet, you will see that the margins of 25px you are trying to apply to the mainWrapper are being cancelled out by later declarations referring to #mainWrapper...

    Code:
    /*wrappers - page or section containers*/
    #mainWrapper {
    	background-color: #ffffff;
    	text-align: left;
    	width: 80%;
    	vertical-align: top;
    	border: 1px solid #9a9a9a;
    	margin-bottom: 25px;
    	margin-top: 25px;
    	}
    
    #headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    	margin: 0em;
    	padding: 0em;
    	}
    
    #logoWrapper{
    	background-image: url(../images/header_bg.jpg);
    	background-repeat: repeat-x;
    	background-color: #ffffff;
    	height:160px;
    	}
    
    #navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
    	margin: auto;
    	} 
    #navColumnOneWrapper, #navColumnTwoWrapper {
    	margin-left: 0.5em;
    	margin-right: 0.5em;
    	}
    The browser will always apply the LAST style it sees, so you must not have conflicting declarations...

    You should, ideally, fix these conflicts, but if you just put this one at the BOTTOM of your stylesheet, it will effect a quick repair.

    Code:
    #mainWrapper {
     margin-left: 25px;
     margin-right: 25px;
     }
    20 years a Zencart User

  4. #4
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: How to add more space above mainwrapper?

    Many tnx XD

 

 

Similar Threads

  1. space above add to cart in product page
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Aug 2013, 03:11 PM
  2. How do I add more space after the sideboxes?
    By annav in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Nov 2010, 11:55 PM
  3. How to add more space above mainwrapper
    By rapro in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 May 2010, 07:50 PM
  4. How to add space above and below template?
    By kenlhlp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Feb 2010, 05:32 PM
  5. Space above and below mainWrapper
    By oxicottin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Sep 2007, 02: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