Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Another White Space above logo

Another White Space above logo

Locked

Views: 1,961

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
19 Sep 2008, 7:23 PM
#1
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Another White Space above logo

I have read what i could find of the whitespace issues and it solved some of my problems in FF but in IE7 i cant seem to get the white space to dissapear above my logo im not sure i have looked for issues in both my style sheet and in my tpl_header file. Any help would be greatly appreciated.

http://www.innate-motorsports.com/

thats my site if somebody could take a look

19 Sep 2008, 7:28 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Another White Space above logo

Couple of things to try.

You have an empty <h1> in your tagline and your logo image has both caps and spaces. Some 'puters don't like caps and spaces.

Firefox can handle eliminating empty calls but IE ...... :frusty:

19 Sep 2008, 7:35 PM
#3
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

i think i got rid of the empty <h1> now but still no changes i havent had any issues in IE7 with other images and capitals in their file names maybe you could take a look at my tpl_header i am not sure how to upload it if you let me know i could show you

19 Sep 2008, 11:28 PM
#4
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

This is my tpl_header file

<!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> <?php } } ?> <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?> </ul> </div> <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display--> <!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?> <div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"></div> <?php } ?> <?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> </div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> </div> <br class="clearBoth" /> <!--eof-branding display--> <!--eof-header logo and navigation display-->
20 Sep 2008, 12:13 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Another White Space above logo

the filename is defined under HEADER_LOGO_IMAGE in another file. Use the Developers Tool Kit to find the file.

20 Sep 2008, 12:29 AM
#6
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

thanks i changed the filename but still not fixed any other ideas

20 Sep 2008, 1:49 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Another White Space above logo

the problem is, once again, with the clear both calls.

You have two -- one in a div and one in a br

Use your firefox view source to find around line 39 > <div id="navMainSearch"><form name="quick_find_header" action="http://www.innate-motorsports.com/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="6" maxlength="30" style="width: 100px" value="Enter search keywords here" onfocus="if (this.value == 'Enter search keywords here') this.value = '';" onblur="if (this.value == '') this.value = 'Enter search keywords here';" /> <input type="submit" value="Search" style="width: 45px" /></form></div>

<br class="clearBoth" /> </div> <div class="clearBoth"></div> <!--eof-navigation display--> and change to read > <div id="navMainSearch"><form name="quick_find_header" action="http://www.innate-motorsports.com/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="6" maxlength="30" style="width: 100px" value="Enter search keywords here" onfocus="if (this.value == 'Enter search keywords here') this.value = '';" onblur="if (this.value == '') this.value = 'Enter search keywords here';" /> <input type="submit" value="Search" style="width: 45px" /></form></div> <!--eof-navigation display-->Without haveing the ability to "see" into your site, I can't tell you where the code is located.
20 Sep 2008, 2:07 AM
#8
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

I think we are getting somewhere now cause it looks good in IE7 ######## FF has the navheader image cut off short

20 Sep 2008, 2:49 AM
#9
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

i got my nav header fixed but it seems like when i fix another problem another arises cause now my logo is off center in FF but not IE7 thanks again for your help

20 Sep 2008, 3:31 AM
#10
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Another White Space above logo

They look same same to me.

20 Sep 2008, 3:46 AM
#11
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

really thats odd in FF it shows up slightly to the right of center and when i try to set a relative percentage position its like its using a different point in each browser to relate to center almost like the left margin if you will is set larger in FF and in IE7 its set where its supposed to be if that makes any sence

20 Sep 2008, 4:35 AM
#12
joshkervel avatar

joshkervel

New Zenner

Join Date:
Sep 2008
Posts:
9
Plugin Contributions:
0

Re: Another White Space above logo

as soon as i get rid of my <div class="clearBoth"></div> after eof navigation display the white space goes away on top of the logo but the logo moves off center in FF only