Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Padding/Margin Issues

    Hi there,

    Could someone pls tell me why my right column/bestsellers sidebox is goin over the main center wrapper. The domain is playnippon dot com. I only experienced this problem after adding padding to the left/center/right boxes.

    Thank you...

  2. #2
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Padding/Margin Issues

    Forgot to add, why is it that when I set the left boxes width to 158px and the left column width to 180px (22px more for the 10px padding and 1px border on both side), the left box container is centered instead of aligned to the left? Am I supposed to set both boxes width and column width to the same value and just put some padding? I've also tried this but then the center column overlaps with it so I had to add margin just to have some space in between...

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Padding/Margin Issues

    Quote Originally Posted by Berserker View Post
    Forgot to add, why is it that when I set the left boxes width to 158px and the left column width to 180px (22px more for the 10px padding and 1px border on both side), the left box container is centered instead of aligned to the left? Am I supposed to set both boxes width and column width to the same value and just put some padding? I've also tried this but then the center column overlaps with it so I had to add margin just to have some space in between...
    The default CSS for the side columns is as follows:

    These are the left and right columns: you've set these to 180px.
    As you can see there is no margin or padding set for them.
    #navColumnOne {
    background-color: #FFCC99;
    }

    #navColumnTwo {
    background-color: #00BFBF;
    }

    These are the wrappers which are contained within the columns. You've set these at 158px.
    As you will note the margin is set to auto which centers the wrapper inside the column.
    #navColumnOneWrapper, #navColumnTwoWrapper {
    margin: auto;
    }

    These are the boxes themselves. They are contained within the column wrapper and would therefore be centered. these boxes are also set at 158px;

    .leftBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 1.5em;
    }
    .rightBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 1.5em;
    }

    Hope this helps

  4. #4
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Padding/Margin Issues

    Hi there,

    Thanks for the reply. That helped a lot!!! Fixed the problem now.

    Thanks so much...

    All the best...

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Padding/Margin Issues

    Quote Originally Posted by Berserker View Post
    Hi there,

    Thanks for the reply. That helped a lot!!! Fixed the problem now.

    Thanks so much...

    All the best...
    glad to help

 

 

Similar Threads

  1. I have a padding or margin issue
    By Coffinwear in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Jul 2010, 04:01 PM
  2. Subcategories and Padding/Margin
    By kathie in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Jan 2009, 08:50 PM
  3. margin and padding problem
    By CoolCarPartsOnline in forum General Questions
    Replies: 3
    Last Post: 19 Oct 2008, 11:41 PM
  4. Margin-Padding??
    By mmnord in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Sep 2008, 07:38 PM

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