Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    May 2007
    Posts
    13
    Plugin Contributions
    0

    Default Gap between header and main content...Help!

    Hi everyone, can you please help me figure out the gap between my header (logo) and the main content of my store? The gap happens in different places in Firefox and in IE, but is there regardless. Thank you!

  2. #2
    Join Date
    May 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Gap between header and main content...Help!

    Sorry I forgot to give a link:

    http://www.scrappinfreestyle.com/store

    Thanks

  3. #3
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Gap between header and main content...Help!

    Quote Originally Posted by andreadesigns View Post
    Sorry I forgot to give a link:

    http://www.scrappinfreestyle.com/store

    Thanks
    in your tpl_header.php, change all:
    <br class="clearBoth">

    to <div class="clearBoth"></div>

    Then in your css, change:

    .clearBoth {clear:both;}

    to

    .clearBoth {
    clear:both;
    height:0;
    font-size:0;
    line-height:0;
    margin:0;
    padding:0;
    }

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Gap between header and main content...Help!

    Actually I think the main cause for the gap is the height you have defined for
    <img width="300" height="282" title=" http://scrappinfreestyle.com " alt="http://scrappinfreestyle.com" src="includes/templates/red_passion/images/logo.gif"/>
    Other items behind that image have a much smaller height but the size of the image is forcing the taglineWrapper to do wierd things. There's nothing in the taglineWrapper and it is not defined in the css. It is, however inside the logoWrapper and, therefore, affected by the height of the logo.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Gap between header and main content...Help!

    A further look indicates that this gif is nothing more than a blank block.

    Therefore, adding
    #logo {
    display: none;
    }
    to the css moves everything.

    If you do want to save the link, just crop your logo.gif (in your red-passion template images file) to the size you want.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    May 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Gap between header and main content...Help!

    Quote Originally Posted by dbltoe View Post
    Actually I think the main cause for the gap is the height you have defined for
    <img width="300" height="282" title=" http://scrappinfreestyle.com " alt="http://scrappinfreestyle.com" src="includes/templates/red_passion/images/logo.gif"/>
    Other items behind that image have a much smaller height but the size of the image is forcing the taglineWrapper to do wierd things. There's nothing in the taglineWrapper and it is not defined in the css. It is, however inside the logoWrapper and, therefore, affected by the height of the logo.
    Thank you very much for pointing this out. I changed the height in my css, but I guess it is being defined somewhere else (as you pointed out)...what file is that code located in that you found?

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Gap between header and main content...Help!

    Replace includes/templates/red_passion/images/logo.gif with the attached file. Until the file is changed NOTHING you do in css (except turning it totally off will change the size of the file.
    Last edited by dbltoe; 18 Jan 2009 at 04:43 PM.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    May 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Gap between header and main content...Help!

    Thank you SO much!!! This fixed my problem :) I appreciate it so much :)

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: Gap between header and main content...Help!

    Glad you got it goin'
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  10. #10
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Gap between header and main content...Help!

    in your tpl_header.php, change all:
    <br class="clearBoth">

    to <div class="clearBoth"></div>

    Then in your css, change:

    .clearBoth {clear:both;}

    to

    .clearBoth {
    clear:both;
    height:0;
    font-size:0;
    line-height:0;
    margin:0;
    padding:0;
    }
    So a question or two: I've got this dumb space in Firefox between "Home Log In" and the logo/image section. There was a dumb space below the image too, which I eliminated in both browsers by taking a <br class="clearBoth"> line out of templates\template_default\common\tpl_header.php

    There's one more instanceof that code line in tpl_header but removing it does not get rid of the gap.

    At anyrate, does having removed <br class="clearBoth"> from one place in this file compromise anything I'm not aware of? Do I need to fix it exactly like in the quote above.... or is just having eliminated it Ok?
    Attached Images Attached Images  

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Gap between header and body
    By timhersh in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Mar 2011, 05:25 AM
  2. Gap on main page between menu bar and content
    By mw4kids in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2009, 03:11 PM
  3. Gap between breadcrumb and content
    By ben harry in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Oct 2009, 04:30 PM
  4. Gap between header and text
    By NickJRE in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 9 May 2007, 01:59 PM
  5. Cant get rid of the small gap between my Header and Main Page.
    By jaz1974 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 24 Oct 2006, 03:57 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