Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / White space in bottom right corner of my header/logo

White space in bottom right corner of my header/logo

Locked

Started by elarya on 13 Mar 2008, 6:48 PM · Views: 2,467

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
13 Mar 2008, 6:48 PM
#1
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

White space in bottom right corner of my header/logo

I am not sure what is causing this, but where my header/logo is, in the bottom right corner of it it is white...

Any ideas? Thank you in advance! Here is a link:
http://www.crochetgarden.com/shop/

13 Mar 2008, 8:31 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: White space in bottom right corner of my header/logo

The reason is because your image is 100px high, but your logoWrapper (which has the background color) is only 75px.

Increasing your logoWrapper to 100px will get you part of the way there, but trigger another problem. The BR tag that clears the logoWrapper will create some white space.

Your options are either to remove it from the tpl_header.php file or to add line-height:0 to the styling of .clearBoth - though if you use the latter be alert to any knock on effects elsewhere.

Kuroi Web Design and Development | Twitter

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

13 Mar 2008, 9:05 PM
#3
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: White space in bottom right corner of my header/logo

Thank you for your reply :) If I go with the former what exactly is "it" that I should remove from the tpl_header file?

13 Mar 2008, 10:02 PM
#4
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: White space in bottom right corner of my header/logo

Ok, I think I figured it out. I changed the height in the CSS to 100px, and then took out the br tag right before the </div> in the tpl_header.php file. Now will removing this tag cause any ill effects on other pages or in other browsers? (I am currently using Firefox).

Thank you so much for the help :)

13 Mar 2008, 10:25 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: White space in bottom right corner of my header/logo

Sometimes it can, but with your design, doesn't appear to have.

You do have the infamous 3px of whitespace below the image in IE6, but with your design it's not an eyesore, and since IE8 beta 1 has just been released, I wouldn't lose sleep over this.

Kuroi Web Design and Development | Twitter

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

13 Mar 2008, 11:06 PM
#6
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: White space in bottom right corner of my header/logo

That is all good to know... thank you so much for helping me with that.. I am still learning CSS. I really tried to make something easy on the eyes, and easy to see, so I am glad that white in IE will pretty much not look like it does not belong there, and like you said with IE8 it should not be a problem when it comes out.

Thanks again so much! :)

13 Mar 2008, 11:31 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: White space in bottom right corner of my header/logo

With IE7 it's already not a problem. And you're very welcome.

Kuroi Web Design and Development | Twitter

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

19 Aug 2009, 6:48 PM
#8
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: White space in bottom right corner of my header/logo

kuroi:

The reason is because your image is 100px high, but your logoWrapper (which has the background color) is only 75px.

Increasing your logoWrapper to 100px will get you part of the way there, but trigger another problem. The BR tag that clears the logoWrapper will create some white space.

Your options are either to remove it from the tpl_header.php file or to add line-height:0 to the styling of .clearBoth - though if you use the latter be alert to any knock on effects elsewhere.

Hi I have the same problem and I fixed it on the English language store but as my store is a multilingual store and the other language doesn't have the tpl_header.php page! what should I do here ?:no:

19 Aug 2009, 6:56 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: White space in bottom right corner of my header/logo

alhakeem2001:

Hi I have the same problem and I fixed it on the English language store but as my store is a multilingual store and the other language doesn't have the tpl_header.php page! what should I do here ?:no:The tpl_header.php file isn't a language file. It sits in the templates/common folder and is common to all languages. The other option suggested would involve changing the main stylesheet.css file which sits in the templates/css folder as is also common to all languages on site. So I'm sorry, but I don't understand your post.

Kuroi Web Design and Development | Twitter

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

19 Aug 2009, 10:34 PM
#10
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: White space in bottom right corner of my header/logo

You are right kuroi bout the tpl_header.php there is only one file with this name, and I eidited the css file in the other language and it works with me now.. :clap: Thanks alot