Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default headerWrapper too big

    Hi,

    I am having a problem with a gap beneath my logoWrapper image. I know a bit about CSS and have been using Firefix to try and debug the problem (using view CSS) I have narrowed doen the problem i think that the #headerWrapper appears to go below the logo - for testing purposes I have coloured it bright green in the stylesheet. It has no padding/margin so i dont see why it is showing. I want the image to ######## straight against the main content.

    Please view my store here:
    http://westmontglass.co.uk/zencart

    Thanks
    Liz

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

    Default Re: headerWrapper too big

    Try this:--

    PHP Code:
    #headerWrapper{
        
    background-color:#00CC33;
            
    height200px;
        } 
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: headerWrapper too big

    Thanks for the reply. Trouble is that #headerWrapper emposases more than just my logo (I have found the code for it in /common/tpl_header.php) .If you set the height to the same as the logo is then wipes out the top bar with my log in etc.

    Really #headerWrapper is just a holder and as it has padding and margin set to 0 in the CSS


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


    i cant see why on earth its giving itself extra space.....

  4. #4
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: headerWrapper too big

    OK I think i have found whats causing it but not sure how to get round it.

    In common/tpl_header.php there is a <br clear=all> line 92 which i suspect is causing the extra space - (well i tried removing it and it fixes the problem)

    BUT my problem is that by removing it i may cause a problem down the line if I change my mind about what i display and dont display in the header section.

    Actually inspecting the code further I wonder if the clear should be moved before the closing div as on line 65/66

    so line 95/96 should be changed from

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

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


    Any advice welcomed!

    Thanks

 

 

Similar Threads

  1. How big is too big=page size
    By daltonkost in forum General Questions
    Replies: 7
    Last Post: 21 Jul 2010, 06:13 AM
  2. Logo too big
    By TaylorH in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Jun 2010, 10:38 PM
  3. Bestseller sidebox too big
    By Unicorn in forum Basic Configuration
    Replies: 2
    Last Post: 28 May 2009, 09:01 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