Friday, September 18, 2009

3 columns footer, anyone?



Ever wondering to have a three columns footer? On your mark, get set, go!!

1. Backup your template. recomended

2. Go to layout tab "Edit HTML"

3. Search the following:
<div id='footer-wrapper'>
<b:section class='footer' id='footer'/>
</div>
the bold tag can be different on each template, maybe looks like
<div id='footer-wrap'>
or
<div id='footer'>

4. Replace the red tag with the following:
<div id='footer-column-container'>
<div id='footer2' style='width: 30%; float: left; margin:0; text-align: left;'>
<b:section class='footer-column' id='col1' preferred='yes' style='float:left;'/>
</div>
<div id='footer3' style='width: 40%; float: left; margin:0; text-align: left;'>
<b:section class='footer-column' id='col2' preferred='yes' style='float:left;'/>
</div>
<div id='footer4' style='width: 30%; float: right; margin:0; text-align: left;'>
<b:section class='footer-column' id='col3' preferred='yes' style='float:right;'/>
</div>
<div style='clear:both;'/>
<div id='footer-bottom' style='text-align: center; padding: 10px; text-transform: lowercase;'>
<b:section class='footer' id='col-bottom' preferred='yes'>
</b:section>
</div>
<div style='clear:both;'/>
<p>
<hr align='center' color='#5d5d54' width='90%'/></p>
</div>

5. Search and replace </b:skin> with the following:
#footer-column-container {
clear:both;
}

.footer-column {
padding: 10px;
}
</b:skin>

Then preview your template, if you see a horizontal line at the bottom on your blog, then you've done it right. To remove this line, find and delete the tag below.
<hr align='center' color='#5d5d54' width='90%'/>

Or  if you wanna keep that line and change its color, just modified the red code above with HTML color code.


Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo

0 comments:

Post a comment