| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#1
|
|||||||
|
|||||||
![]() Hi All
Having trouble moving logo over to left to get rid of the unwanted space. I have read other post in here about how to do it but nothing seems to be working. It does not look like there should be any padding. I have cleared the cache several times, with same results. This is a standard header, not a fancy skin. Any bod y got any ideas where else I should look? In the skin1.css I have this showing .HeadLogo { TEXT-ALIGN:left; PADDING:0; BACKGROUND-COLOR:#333333; } If I use webmaster mode it says to look in the head. tpl. Have done that as well <tr> <td class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xmarcalogo.gif" width="244" height="70" alt="" /></a></td> <td class="HeadRightBox"> {if $usertype eq "C"} {include file="customer/top_menu.tpl"} {/if} </td> </tr> </table> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer_b.gif" class="Spc" alt="" /></td> </tr> {if $main ne "fast_lane_checkout"} <tr> <td class="HeadLine" height="1"> {if $usertype eq "C"} {* include file="customer/search.tpl" *} {/if} </td> <td class="HeadLine" align="right"> {if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1} <form action="home.php" method="get" name="sl_form"> <input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|amp}" /> <table cellpadding="0" cellspacing="0"> <tr> <td style="padding-right: 5px;" class="TopLabel">{$lng.lbl_select_language}:</td> <td><select name="sl" onchange="javascript: this.form.submit();"> {section name=ai loop=$all_languages} <option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}>{$all_languages[ai].language}</option> {/section} </select></td> </tr> </table> </form> {else} {/if} </td> </tr> {else} {* Fast Lane Checkout page *} <tr> <td colspan="2" class="HeadLine"> <form action="{$xcart_web_dir}/include/login.php" method="post" name="toploginform"> <input type="hidden" name="mode" value="logout" /> <input type="hidden" name="redirect" value="{$redirect}" /> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="FLCAuthPreBox"> {if $active_modules.SnS_connector and $sns_collector_path_url ne '' && $config.SnS_connector.sns_display_button eq 'Y'} <img src="{$ImagesDir}/rarrow.gif" alt="" valign="middle" /><b>{include file="modules/SnS_connector/button.tpl" text_link="Y"}</b> {else} <img src="{$ImagesDir}/spacer_b.gif" class="Spc" alt="" /> {/if} </td> {if $login ne ""} <td align="right" nowrap="nowrap"><b>{$userinfo.firstname} {$userinfo.lastname}</b> {$lng.txt_logged_in}</td> <td class="FLCAuthBox"> {if $js_enabled} {include file="buttons/button.tpl" button_title=$lng.lbl_logoff href="javascript: document.toploginform.submit();" js_to_href="Y"} {else} {include file="buttons/logout_menu.tpl"} {/if} </td> {/if} </tr> </table> </form> </td> </tr> {/if} <tr> <td colspan="2" class="HeadThinLine"><img src="{$ImagesDir}/spacer_b.gif" class="Spc" alt="" /></td> </tr> {******** Remove this line to display how much products there are online **** <tr> {insert name="productsonline" assign="_productsonline"} <td colspan="2" class="NumberOfArticles" align="right"> {if $config.Appearance.show_in_stock eq "Y"} {insert name="itemsonline" assign="_itemsonline"} {$lng.lbl_products_and_items_online|substitute:"X" :$_productsonline:"Y":$_itemsonline} {else} {$lng.lbl_products_online|substitute:"X":$_product sonline} {/if} </td> </tr> **** Remove this line to display how much products there are online ********} {if $main ne "fast_lane_checkout"} <tr> <td colspan="2" valign="middle" height="32"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="HeadTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td> {if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'} <td class="PrintableRow" align="right">{include file="printable.tpl"}</td> {/if} </tr> </table> </td> </tr> {else} {* Fast Lane Checkout page *} <tr> <td colspan="2" class="FLCTopPad"><img src="{$ImagesDir}/spacer.gif" alt="" /></td> </tr> {/if} </table> As always any and all help is greatly appreciated. Thanks Scott V 4.18 PS- Also looked in top_menu.tpl but cellpadding="0"
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#2
|
|||||||
|
|||||||
![]() Got a url we could see?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Sure.
Site is still rough but here is url http://www.marcabrahms.zeno.thinkhost.com/xcart FYI- current logo in the header is only a holding device. Waiting for new one from the client.
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#4
|
|||||||
|
|||||||
![]() Does the 'Container' class have any padding associated with it?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Hi Balinor,
Thanks for answering and looking, There is none in the container class, and I can find no padding anywhere else that should be causing this to happen. ( not that it should but have looked at the diallog, vert menus, etc changing those padding to see if I somehow have done something there that would cause it to effect the head.tpl where the logo is housed. I am contemplating redoing the head .tpl from scratch as perhaps I have messed up something with that. BAffled once again Scott
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#6
|
|||||||
|
|||||||
![]() Well, all those nested tables will certainly cause problems with padding/spacing. Sometimes the TD tag will ignore CSS on alignment, so try adding this to the table cells containing the logo:
align="left"
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() A good idea
I tried that - but did not change anything. I think I am going to have to probably try to redo the header. Maybe its picking up something from the top_menu.tpl, or the tabs.tpl Neither of these are showing padding though. Heres a dumb question, don't know if it makes sense. Hope I can explain it right. Before I redo the header could I try this to see if I can isolate the problem source. go the head.tpl and edit out {**} top_menu.tpl. to see if that changes anything, if so then open that .tpl and then edity out tab.tpl Or would this not matter or work ? Does the top_menu.tpl need to be active for the head.tpl to display If I can p roceed like this it may at least tell me what is causing the problem.
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#8
|
|||||||
|
|||||||
![]() Here's what I'd do...create a completely new head.tpl and just put this in it:
<div class="HeadLogo"><a href="{$http_location}/"><img src="{$ImagesDir}/xmarcalogo.gif" width="244" height="70" alt="" /></a></div> If THAT doesn't left align, you know something is up. Oh and the image is also 67px high, not 70...causing a bit of degrading of the image because of scaling.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() Thanks Balinor
Will try this code, I w as aware of the image size difference. I changed it last night in a futile attempt to see if somehow the image might be causing hte problem - I just tried editing out the top_menu.tpl form the header but that didnlt resolve anyhtnig so I changes it back Will let you know what happens with the cide Scott
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
#10
|
|||||||
|
|||||||
![]() Hi Balinor,
Wanted to get back to you about the code you sent me to try and move the logo to the left. Well I made new head.tpl used code you sent and it didn't change things. I still have the space there, however I did manage to get my problem solved. Since this client doesn't really have a graphic logo I was able to get away with using type up there and think it will work out fine. In the event I need to put a logo up there and can't get it to drop out into the background for some reason then I may need to figure out the space problem then. in the mean time - NEXT- Moving on Thanks again for the help though. Scott V
__________________
scott v x cart version 4.1.8 (Unix) |
|||||||
|
|||
X-Cart forums © 2001-2020
|