Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Centering a logo in File: /head.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-12-2006, 12:32 PM
  dire_lobo's Avatar 
dire_lobo dire_lobo is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 53
 

Default Centering a logo in File: /head.tpl

I've got a logo image (.png) that's 803 px wide x 168 px tall. I'm attempting to center it in "/head.tpl" so it will... well, so it will be centered.

Helpdesk was marginally helpful, they indicated that I just needed to "add the following property to the corresponding <TD> tag: alogn="center" - But that doesn't seem to work. I did make their job more difficult - when they went to look at the site, I had implemented a workaround by increasing the cell padding in previous cell - so it appeared I had fixed it before they replied.

But it's not. And the workaround is unworkable.

I'm doing SOMETHING wrong - (and yes, I tried both "alogn" and "align")


I seem to recall that there is a (hidden?) .gif spacer that confounds the process, but for the life of me, I can't find the thread... it it realy exists here is the code as it exists at present:

<TABLE
background-color: 003366;
border-border-top-width: 7px;
border-bottom-width: 7px;
border-top-style: solid;
border-top-color: #336699;
border-bottom-style: solid;
border-bottom-color: #336699;
cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="0"></TD>
<TD><A href="{$http_location}">[img]{$ImagesDir}/UFG_hdr1.png[/img]
</TD>
</TD></TR>
</TABLE>

I know it's probably somthing stupid that I'm missing, so thank you for your patience - and many thanks for your assistance. (Yes, there is some additional formatting that also doesn't seem to be working - since it seems to be a different subject, I was going to put that in a seperate post.[/code]
__________________
4.1.8 live
shared server/hosted linux
Physical Location: New Mexico, USA
Server Location: Arizona, USA
Reply With Quote
  #2  
Old 07-12-2006, 01:04 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You've got a real mess there Try this:

Code:
<TABLE style="background-color: #003366; border-top: 7px solid #336699; border-bottom: 7px solid #336699;" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD align="center"><A href="{$http_location}">[img]{$ImagesDir}/UFG_hdr1.png[/img] </TD> </TR> </TABLE>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-12-2006, 01:41 PM
  dire_lobo's Avatar 
dire_lobo dire_lobo is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 53
 

Default RESOLVED - with many many thanks to balinor!

[quote="balinor"]You've got a real mess there ...

It does feel good that I'm starting to figure things out, but when I get in a hurry I can make a bloody mess of things pretty quick - and I'm usually not smart enough to slow down and try to remember what I did ... it's probably why they don't let me play with sissors either THANK YOU!

I'm trying to figure out some other issues, if I can't take care of them on my own, I'll post them - And again, I'm both glad and grateful that good folks like you are around!

dire
__________________
4.1.8 live
shared server/hosted linux
Physical Location: New Mexico, USA
Server Location: Arizona, USA
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:37 AM.

   

 
X-Cart forums © 2001-2020