21 December, 2009

Adding background image in Footer

Learn to add background images in footer and controlling it with CSS

One of my Orkut mate(αквαя:α яσcкѕтαя:) asked me this question that how do i add background image in the footer.This one is for you bro.
Adding background image to footer is same like adding background color/image to the blogger but the difficult part in footer is that you have to control it with css so that it adjust according to your template.
Before editing first backup your template this is important in case you want to revert back to your initial stage.

Steps  Involved:
  1. Login to your dashboard.
  2. Click on layout tab,click edit HTML.
  3. Expand widget template
  4. Use your browser search(Cntrl +f) to find footer or footer-wrapper or footer-wrap (It may be different in different templates) or something with footer.
  5. Your footer will be something  like this.

6.Now Add background: url(Your-image-url.jpg) no-repeat; anywhere between the brackets { and }.
So that your Footer section Now becomes.
#footer {
background: url(Your-image-url.jpg);
margin:0 auto;
Do not Forget To replace Your-image-url.jpg with your full image url which you can upload on any image hosting websites like tinypic.com or photobucket.

7.And  Click    Save Template 

This might Work For you But If you image is not alligned ,shorter bigger and want  control on image or want to learn some Image Css properties you can read below.

Specifying How the background image repeats :
You can use background-repeat: repeat-x background-repeat: repeat-y background-repeat: no-repeat along with your image url to make it repeat horizontally ,vertically or for no repeating respectively.
background: url(Your-image-url.jpg) ;
background-repeat: repeat-x;

background: url(Your-image-url.jpg) ;
background-repeat: repeat-y;
background: url(Your-image-url.jpg) no-repeat;

Positioning the background image 

You can position your image using distances (in pixels px) and percentages(%) or using relative positions.Examples are taken from NCdesign
Using Distances(pixels)-background-position:100px 25px;
Adding this line with your image url will place your image 100px towards the left and 25px downwards taken from the top.Assuming Center is at the top-left of the screen.

Today is fine.

Using Percentages(%)-background-position: 25% 75%

Today is fine.

Learn More :

Where i can find more examples and tutorials for CSS or particularly background image?
  1. Css background at w3schools
  2. Stretch background Image at webdesign.about.com
  3. Controlling background images and colors at elated dot com


  1. Thanks for a good post. Seo footer links are good upto some extent and it may harm you if 100links rule in not followed in the page.

    But according to Web 2.0 style footer is also a good way of optimizing the pages.


  2. Thanks for the post, I will use it at www.compuclasesbahia.com.ar

  3. THANK YOU for this post! I had been wrestling with the image scrolling in the footer, even though I had indicated "fixed"...and repeating itself, even while using "no-repeat" - the positioning "distance" you suggest via pixels finally resolved the problem - many many thanks!!

  4. My blog footer is like this, how can i add background image?
    /* Footer
    ----------------------------------------------- */
    .footer-outer {
    background: $(footer.background);

    .footer-outer a {
    color: $(footer.link.color);

    .footer-outer a:visited {
    color: $(footer.link.visited.color);

    .footer-outer a:hover {
    color: $(footer.link.hover.color);

    when i add image using
    .footer-outer {
    background: url("url of image");
    float: right;
    margin-right: 10px;
    padding:2px 0 0;

    it doesn't look fine :(
    I'm using Blogger Template Style
    Name: Watermark

  5. well i cant find that code in my blog html even if i expand widgets :( ---> http://jokeuploads.blogspot.com/


Spam/advertising comments will NEVER BE TOLERATED and will be deleted immediately!

I advise you to also "subscribe to the comment feed" and get email updates when I respond to your question.
Thanks for reading,