Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default space at top of columns? confused

    my site = http://######-shop.sysfix.co.uk

    If you look at the left and right columns, if I use a background color, you can see that there is a gap at the top of each column

    I've tried adding margin; 0px; border:0px and also padding: 0px in the following css area but nothing... Any ideas.



    /*The main content classes*/

    #contentColumnMain, #navColumnOne, #navColumnTwo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .alert {

    vertical-align: top;
    background-color: #EEECE7;
    }

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: space at top of columns? confused

    This isn't a gap at the top of your columns. It's a gap above each of your boxes. Look for example at the same sized space above the information box.

    This spacing comes from the following settings in your stylesheet:
    .leftBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 1em;
    }

    .rightBoxContainer {
    border: 1px solid #ffffff;
    margin-top: 1em;
    }
    A margin-top of 1em in this context is equal to 10px.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Re: space at top of columns? confused

    leftboxcontainer

    change the margin value

  4. #4
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Re: space at top of columns? confused

    Quote Originally Posted by Chrome Orange
    leftboxcontainer

    change the margin value

    too slow :)

  5. #5
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default Re: space at top of columns? confused

    hey thanks for that -
    It's times like this I wish I never asked the question though as when one problem is solved, another appears and that now being my center column isn;t alingned with the rest or the store. ugh!

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: space at top of columns? confused

    Quote Originally Posted by SysFix
    hey thanks for that -
    It's times like this I wish I never asked the question though as when one problem is solved, another appears and that now being my center column isn;t alingned with the rest or the store. ugh!
    We're making it too easy for you, you're getting lazy Since you dealt with your left column and your right column, now it's got to be the center column, right? And it's got to something to do with padding or margins, yes? So just go find where the padding or margins are set for centerColumn
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default Re: space at top of columns? confused

    I already have the following css in my stylesheet which is why I was confused..

    .centerColumn{
    margin-top:0px;
    padding-top:0px;
    border-top:0px;
    }


    There is no empty line in my define_page as the first html code is an <img> tag, unless of course theres an &nbsp in the code somewhere on a php page

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: space at top of columns? confused

    Quote Originally Posted by SysFix
    I already have the following css in my stylesheet which is why I was confused..

    .centerColumn{
    margin-top:0px;
    padding-top:0px;
    border-top:0px;
    }

    There is no empty line in my define_page as the first html code is an <img> tag, unless of course theres an &nbsp in the code somewhere on a php page
    Apologies, I saw that you also have
    .centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
    padding: 0.6em;
    }
    and fired off my response too quickly.

    You could make your site look good by setting your margin-top to -4px causing the div containing the image to ride up over the space and align with your side columns. But its better to get rid of problems rather than cover them up.

    So, here is the root of your problem
    PHP Code:
    <h1 id="indexDefaultHeading"></h1
    It sits at the very top of centerColumn and even though it is empty, still has margins. Remove this and all will be well.

    As an aside, you are basing your work on a copyrighted design, which is a bit naughty even if you intend to make significant changes, and completely unacceptable if you don't (as you would be ripping off somebody's livelihood). And to rub salt in the wound you are linking back to the template site for the images (i.e. stealing their bandwidth). If you need further help on this project, please would you let me know what your overall intentions are, so that I can judge whether it's appropriate to provide it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default Re: space at top of columns? confused

    I'm using the design purely for learning purposes.
    I will be changing all the images, layout, sideboxes etc but until I know how css works fully, I will never be able to customise the site to my own design.

    To be honest, the template monster site is infact a simple zen store with nothing more than a few images and aligned content.



    Thanks for your reply to my posts. I'll check that out.

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: space at top of columns? confused

    Quote Originally Posted by SysFix
    I'm using the design purely for learning purposes.
    I will be changing all the images, layout, sideboxes etc



    Quote Originally Posted by SysFix
    until I know how css works fully, I will never be able to customise the site to my own design.

    This is too high a target. I was about to write that I believed that only Eric Meyer and Jeffrey Zeldman fully know how CSS works - then I remembered that in the preface to Eric's book "on CSS", Jeffrey admits to turning to Eric when he gets stuck. There are Zen-like levels of complexity to be overcome here; don't let not having mastered them all hold up branching off on your own. CSS is best learnt by setting your own challenges and overcoming them.

    Quote Originally Posted by SysFix
    To be honest, the template monster site is infact a simple zen store with nothing more than a few images and aligned content.
    Yep. I believe that Template Monster sometimes refers to them as skins. And whilst they weren't that complicated to construct with tables, they're even easier with CSS.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Columns - extra space
    By Momof9Blessings in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Jul 2013, 09:45 PM
  2. Turned off side columns on home page, but space for right column still there.
    By mel150 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2010, 07:49 PM
  3. Top White Space
    By neighbornick in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Mar 2009, 04:32 AM
  4. removing space at top
    By dingfelder in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Oct 2008, 09:11 PM
  5. Make Space at top
    By unhappyDAVE in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jul 2008, 12:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR