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 to get a table positioned at the bottom of the page (https://forum.x-cart.com/showthread.php?t=30404)

NightFire 04-13-2007 06:49 AM

How to get a table positioned at the bottom of the page
 
Hi All,

Couldn't find a solution anywhere. Searched the internet and also nothing.
This is what I want to do.

Under every page I want to show a table with some helpful links, like help section, contact us, terms and conditions etc.
This page will be shown above the footer. As my layout is a 2 colum layout I want to have this table positioned at the bottom of the page, no matter how long the page is. Sometimes there will be some white space between the products and the table, but that is ok.

I've tried different ways. Wrapping the table with a div. Using a css style to get it to the bottom. But when I try to do that, it just shows the table somewhere in the middle of my shop pages.

Here is the code I've tried to work with:

Code:


{*<div style="position:absolute;bottom:0px;> *}

<style>
#footer {
bottom: 0;
position: absolute;
width: 100%;
vertical-align:baseline;
padding: 0% 0%;
}
</style>

<div id="footer" align="center">
<table>
......
</table>
</div>


But all of these doesn't seem to work. Maybe someone has a better idea to get this solved.
Thanks.

inebriate 04-13-2007 03:11 PM

Re: How to get a table positioned at the bottom of the page
 
just add the table within the footer.tpl but above the footer table/code

NightFire 04-13-2007 03:23 PM

Re: How to get a table positioned at the bottom of the page
 
Thanks for the reply. Unfortunately this is not possible in my situation.
The only way for me is to get this table positioned at the botton. It must be possible, but I just don't know how.

JWait 04-14-2007 06:41 PM

Re: How to get a table positioned at the bottom of the page
 
Look at skin1/rectangle_bottom.tpl. If you notice, it references include file="bottom.tpl". That is the bottom bar on every page, the one that says "powered by x-cart". you can either insert your table in bottom.tpl, or create a template and put an "include" for it in rectangle_bottom.tpl under where it includes bottom.tpl.


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

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