Forums / Templates, Stylesheets, Page Layout / How to eliminate the white line ? It drived me crazy :(

How to eliminate the white line ? It drived me crazy :(

Locked

Started by ohiseekyou on 11 Sep 2007, 5:23 AM · Views: 1,956

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
11 Sep 2007, 5:23 AM
#1
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

How to eliminate the white line ? It drived me crazy :(

How to eliminate the white line ? It drived me crazy :(

Zen Cart: V1.3.7
Template: PurpleShades LATEST VERSION
Browser : IE6
My Site : http://www.ohiseekyou.com

After I installed the Zen Cart and the Template PurpleShades, I found there is a white line right between the LOGO BAR and the NavMain BAR in IE6. There is no such white line in FireFox. It must be a bug in IE6.

I checked the CSS file and the file tpl_header.php located in \includes\templates\template_default\common.

But I did not find the key to fix the bug.

I also found there is no white line in site : http://(sorry, site offline)/137/index.php?main_page=index&template_dir=purpleshades

And the version of template PurpleShades in (sorry, site offline) is previous of my version in my link: http://www.ohiseekyou.com

Give me some directions, plz! It almost drive me crazy !

11 Sep 2007, 10:21 AM
#2
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: How to eliminate the white line ? It drived me crazy :(

My link: http://www.ohiseekyou.com
may not be accessed !

So you can see the bug in my attached pic!

Now I replaced the background pic to try to find the key!

Any hint is welcome!

11 Sep 2007, 11:15 AM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How to eliminate the white line ? It drived me crazy :(

Attempted to visit site.. blank white page received
:(

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

11 Sep 2007, 5:53 PM
#4
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: How to eliminate the white line ? It drived me crazy :(

Now I'm sure it's a bug of IE6.

<style> <!-- div { border:1px solid red; background:orange; } img { width:276px; height:110px; } --> </style> <div> <img src="http://www.google.cn/intl/zh-CN/images/logo_cn.gif"/> </div>

Run the code above. We'll find there are 3px gap under the image.
The google supplies the key: add "display:block;" or "vertical-align:top | bottom |middle |text-bottom" to image selector.

But there is a gap under the logo still.
What can I do except decreasing the height of the logo ?

11 Sep 2007, 6:16 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,894
Plugin Contributions:
20

Re: How to eliminate the white line ? It drived me crazy :(

This may or may not be causing the problem but, it's a start.> #navMain ul, #navSupp ul, #navCatTabs ul {

line-height:2.5em;
list-style-type:none;
margin:0pt;
padding:0.5em 2em;
text-align:center;
}
Firefox probably knows you wanted no margin while IE (as usual) says:huh:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

11 Sep 2007, 7:01 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,894
Plugin Contributions:
20

Re: How to eliminate the white line ? It drived me crazy :(

BTW,
Your graphics are huge for a website:shocking: That may be why some are seeing a blank page and leaving.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Sep 2007, 4:26 AM
#7
ohiseekyou avatar

ohiseekyou

New Zenner

Join Date:
Aug 2007
Posts:
41
Plugin Contributions:
0

Re: How to eliminate the white line ? It drived me crazy :(

dbltoe:

This may or may not be causing the problem but, it's a start.
Firefox probably knows you wanted no margin while IE (as usual) says:huh:

The defaut settings in Template PurpleShades are:

#navMain ul, #navSupp ul, #navCatTabs ul {
margin: 0;
padding: 0.5em 2em;
list-style-type: none;
text-align: center;
line-height: 2.5em;
}

I tried to append the Unit "pt" to "margin:0".
But Saddly, the bug is still not fixed!
Maybe the <div> contains <div>, and <div> contains <img>, cause the problem!

12 Sep 2007, 4:44 AM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,894
Plugin Contributions:
20

Re: How to eliminate the white line ? It drived me crazy :(

pt is NOT a valid unit for margin, height, padding,.....

Either px or em or the usually used with an occasional % thrown in. px is a set amount while em sets the item based on the resolution of the user's browser.

I think you should re load the purpleshades stylesheet.css (save your current as stylesheet.old) and S L O W L Y change item by item to see what's happening.

OR... 1. Do a view source on your main page, save it as test.html to your desktop.
2. Save the current stylesheet.css to your desktop.
3. Get a copy of TopStyle Lite.
4. Use TopStyle Lite to adjust the stylesheet using test.html as a go by.
5. Load the corrected stylesheet back to your site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com