X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Centering a logo in File: /head.tpl (https://forum.x-cart.com/showthread.php?t=23221)

dire_lobo 07-12-2006 12:32 PM

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] :wink:

balinor 07-12-2006 01:04 PM

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>


dire_lobo 07-12-2006 01:41 PM

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 :lol: 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


All times are GMT -8. The time now is 06:33 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.