Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing the Blank line ??? help needed ;-)

Removing the Blank line ??? help needed ;-)

Locked

Views: 1,979

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
26 Jun 2007, 3:17 PM
#1
bast avatar

bast

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Removing the Blank line ??? help needed ;-)

Hello zenners !

first post here, I am quite impressed :blush:

I am working on a zencart for a couple of months, now (and I am really having a great time, even if I am not an expert!). Among all the problems I had to solve by myself, only ONE is still remaining. That's my white whale, that's the "white line problem"

here is a screen capture :

I simply would like to remove this empty white line, but I still haven't found the good line on the CSS :no: :cry:

could anybody help me on that ?

here is the link, if you want to visit the whole site (or if you want to give an opinion / piece of advice, that I would be so glad to read) : http://www.sonohit.com/index.php

thank you very much for you help !

Bast

26 Jun 2007, 3:46 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Removing the Blank line ??? help needed ;-)

In your stylesheet, find the code that looks like:

.clearBoth {
clear:both;
}

and add: display: none; to make it look like:

.clearBoth {
clear:both;
display:none;
}

Then, change the height to 269 in this section of code, to make it look like:

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

Hope this helps.

26 Jun 2007, 4:35 PM
#3
bast avatar

bast

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: Removing the Blank line ??? help needed ;-)

no, unfortunately it didn't :cry:
i lost my mainWrapper background plus it messed the layout :smile:

26 Jun 2007, 8:27 PM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Removing the Blank line ??? help needed ;-)

bast:

no, unfortunately it didn't :cry:
i lost my mainWrapper background plus it messed the layout :smile:

Hmm.....Did you change both at once, before you refreshed and looked at it, as they BOTH HAVE to be done TOGETHER.

I use FireFox with the Web Developers' add-on, which lets you temporarily edit any site on the fly. When I edited your site like I showed you, everything looked VERY nice.

Might try clearing your cache, too.

27 Jun 2007, 6:57 AM
#5
bast avatar

bast

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: Removing the Blank line ??? help needed ;-)

well that's what i did, and i still have problems, here is a capture, done with firefox (I do not even mention the differencies with IE :laugh: ) : http://www.sonohit.com/cap02.jpg

btw : i had troubles yesterday at 18h pm (gmt+1) with my css. I stupidly replaced 'margins' by 'padding' and i took some time to fix everything (yeah i know what you think and i agree : me = stupid :smile:) maybe the test you did happened during those problems ?

thanks for you help anyway !

27 Jun 2007, 9:00 AM
#6
kuroi avatar

kuroi

Totally Zenned

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

Re: Removing the Blank line ??? help needed ;-)

Sorry, but the following CSS is a really bad idea> .clearBoth {

clear:both;
display:none;

}There are over 200 uses of this class in Zen Cart and turning them all off will cause chaos in a site's layout.

Better would be to target the specific problem with the following CSS> #headerWrapper .clearBoth {line-height:0}This targets only the two clearBoth instructions in the header, leaving the rest on the site untouched and removes their physical height which will eliminate the white line for all browsers except Internet Explorer.

IE will show off it's infamous 3px whitespace bug. In this design you can easily eliminate this by adding margin-top:-3px to your #navCatTabsWrapper styles.

This will lose you the bottom 3 pixels of your header image in non-IE browsers, which personally I think looks OK. But if you want them back you can target the previous change at IE only browsers by using this add-in mod form the downloads section.

27 Jun 2007, 12:53 PM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Removing the Blank line ??? help needed ;-)

bast:

well that's what i did, and i still have problems, here is a capture, done with firefox (I do not even mention the differencies with IE :laugh: ) : http://www.sonohit.com/cap02.jpg

btw : i had troubles yesterday at 18h pm (gmt+1) with my css. I stupidly replaced 'margins' by 'padding' and i took some time to fix everything (yeah i know what you think and i agree : me = stupid :smile:) maybe the test you did happened during those problems ?

thanks for you help anyway !

You=stupid???? Me, think that?......not at all. As you can see from kuroi's post, I am the stupid one, here, as it never even dawned on me that this class (.clearBoth) is used repeatedly throughout the site. My bad. Sorry. Thanks for clearing this up, kuroi.
And, It is VERY possible that I could have been doing these modifications during your modifications.

27 Jun 2007, 1:03 PM
#8
kuroi avatar

kuroi

Totally Zenned

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

Re: Removing the Blank line ??? help needed ;-)

Get Em Fast:

Thanks for clearing this up, kuroi.You're welcome. It's the sort of mistake we all make from time-to-time when we get deep into helping somebody solve a particular problem. Happily in the XHTML/CSS world they're also remarkably easy to unpick and reverse. :wink:

27 Jun 2007, 2:36 PM
#9
bast avatar

bast

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: Removing the Blank line ??? help needed ;-)

:clap::clap::clap:

yes it is working !! thanks you so much kuroi and Get Em Fast you made my day !!! me = happy !! (don't worry Get Em Fast, I always say me=stupid, i never meant you thought that ;-))

once again : thank you !

hey btw: what do you think about my template ? tell me ? ;-)

27 Jun 2007, 7:13 PM
#10
kuroi avatar

kuroi

Totally Zenned

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

Re: Removing the Blank line ??? help needed ;-)

bast:

hey btw: what do you think about my template ? tell me ? ;-)C’est un travail impressionnant. Vous en êtes évidemment fier, et avec bonne raison !