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

How can I align to bottom in php source?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-25-2010, 03:23 AM
  Bruno Stevens's Avatar 
Bruno Stevens Bruno Stevens is offline
 

Newbie
  
Join Date: Dec 2010
Location: Belgium
Posts: 3
 

Question 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
__________________
Bruno Stevens - Belgium
X-Cart 4.4.1 Gold
mother tongue: Dutch

www.tandem-shop.kz
Reply With Quote
  #2  
Old 12-25-2010, 07:39 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 12-26-2010, 04:35 AM
  Bruno Stevens's Avatar 
Bruno Stevens Bruno Stevens is offline
 

Newbie
  
Join Date: Dec 2010
Location: Belgium
Posts: 3
 

Default 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>
__________________
Bruno Stevens - Belgium
X-Cart 4.4.1 Gold
mother tongue: Dutch

www.tandem-shop.kz
Reply With Quote
  #4  
Old 12-26-2010, 06:18 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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 "topxxx" to position as this will depend on the length of the page where the element shows, use "bottomxx" - no matter how long the page is it will always be on the same spot
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:56 AM.

   

 
X-Cart forums © 2001-2020