PDA

View Full Version : Help with footer



Vitor Reis
February 2, 2010, 11:09 PM
Hello,

I don't understand CSS very well, and I'm trying to add two columns to my footer. I can do it with tables but maybe you can help me doing in right way! ;)

First the code I have in footer.tpl:



<div class="main_bottom_left_angle png"></div>
<div class="main_bottom_center_bg_footer"></div>
<div class="main_bottom_right_angle png"></div>
{include file='menus'|cat:$smarty.const.RL_DS|cat:'footer_m enu.tpl'}
<div class="clear"></div>
<div id="footer_cr_block">
<div style="padding-top:10px;">
<span class="cr_text">{$lang.cr_powered_by}</span>
{$lang.cr_reefless_cs} ({$lang.reefless_url})
<div style="text-align: center; margin: 0 0 8px;" class="cr_text">design by Free CSS Templates (http://www.free-css.com)</div>
</div>
</div>



Image of my actual footer:
http://www.mercadoclassicos.com/lixo/mercado_footer.png

Now as I wont it:
http://www.mercadoclassicos.com/lixo/mercado_footer_after.png

Thank you,
Vitor

John
February 10, 2010, 02:00 PM
Hi Vitor,
I guess the table is good idea, try the following code:




<div class="main_bottom_left_angle png"></div>
<div class="main_bottom_center_bg_footer"></div>
<div class="main_bottom_right_angle png"></div>
{include file='menus'|cat:$smarty.const.RL_DS|cat:'footer_m enu.tpl'}
<div class="clear"></div>
<div id="footer_cr_block">
<div style="padding-top:10px;">
<table class="sTable">
<tr>
<td align="center" style="width: 30%">

</td>
<td align="center" style="width: 40%">
<span class="cr_text">{$lang.cr_powered_by}</span>
{$lang.cr_reefless_cs} ({$lang.reefless_url})
<div style="text-align: center; margin: 0 0 8px;" class="cr_text">design by Free CSS Templates (http://www.free-css.com)</div>
</td>
<td align="center" style="width: 30%">

</td>
</tr>
</table>
</div>
</div>