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)
-   -   How can I align to bottom in php source? (https://forum.x-cart.com/showthread.php?t=57233)

Bruno Stevens 12-25-2010 03:23 AM

How can I align to bottom in php source?
 
I have no experience in PHP
I try to modify left_bar.tpl

skin / vivid_dreams_lotus / customer / left_bar.tpl

I have added this:

<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftandem-shopkz.x-shops.com&amp;layout=standard&amp;show_faces=true& amp;width=200&amp;action=like&amp;font=verdana&amp ;colorscheme=light&amp;height=80" style="border:none; overflow:hidden; width:200px; height:80px;"></iframe>

and ik works :)

But I would like to align it to the bottem...

Thank you for advice O:)

cflsystems 12-25-2010 07:39 AM

Re: How can I align to bottom in php source?
 
What you are editing is a template file - you don't need to know php to modify it, you need to know smarty, html and css. If you put your new code at the end of left_bar.tpl after all other code it will be the last thing to load so it will be aligned to the bottom of left_bar.tpl.

Bruno Stevens 12-26-2010 04:35 AM

Re: How can I align to bottom in php source?
 
Thank you Steve, but what I wanted is that the new code in shown at the bottom of the page. (left_bar.tpl)

With <align="bottom"> it didn't work.

Neither with this:

p {
position: absolute;
top: 575px;
left: 75px;}

<P>
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftandem-shopkz.x-shops.com&amp;layout=standard&amp;show_faces=true& amp;width=200&amp;action=like&amp;font=verdana&amp ;colorscheme=light&amp;height=80" style="border:none; overflow:hidden; width:200px; height:80px;"></iframe>
</P>

And neither with this:

<div class="footer">
<p>
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftandem-shopkz.x-shops.com&amp;layout=standard&amp;show_faces=true& amp;width=200&amp;action=like&amp;font=verdana&amp ;colorscheme=light&amp;height=80" style="border:none; overflow:hidden; width:200px; height:80px;"></iframe>
</p>
</div>

cflsystems 12-26-2010 06:18 AM

Re: How can I align to bottom in php source?
 
If you need it at the bottom of the page put it in the footer or in the container that holds middle and left part of the page. In order positioning to work the parent container must have positioning as well. Do not use "top:xxxx" to position as this will depend on the length of the page where the element shows, use "bottom:xxx" - no matter how long the page is it will always be on the same spot


All times are GMT -8. The time now is 07:40 AM.

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