Best Hacks

Sunday, 9 September 2012

How to add picture to Background in BLOGGER



To add a Picture to the background of your blog...............

Step 1. FIRST create a free account at Googlepages (http://pages.google.com) to host your image/picture. In the Page Manager go to bottom frame of sidebar and click on Upload. Browse to your file on PC and click Open to upload it to your Google Page Account. At the present they offer 100 MB free disk space. Right click on the uploaded file and choose Copy Link Location. This copies the URL of the picture you have uploaded.


Step 2. Login to the Dashboard. Click on Layout under name of blog you want to add picture to. Click on Edit Html tab next to Page Elements tab. This opens the Edit Template page.



Step 3. First backup your whole template using methods described in How to Change Template.
FOR SAFE BLOGGING. Use Download full template link in edit Html subtab of Template tab.


Step 4. Then scroll down in Edit Template text box till you come to :

body {
background:$bgcolor;
margin:0;
color:$textcolor;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}

This is part of the code CSS (Cascading Style Sheet) described in Parts of the Template. This describes the whole background of your blog. To add an image here you have to add the following code before the '}' at the end :

background-image:url(WEB URL OF YOUR PICTURE );
background-repeat:no-repeat;
background-position:120% 10%;
background-attachment: scroll;

SO THAT IT LOOKS LIKE THIS :

body {
background:$bgcolor;
background-image:url(WEB URL OF YOUR PICTURE);
background-repeat:no-repeat;
background-position:120% 10%;
background-attachment: scroll;
margin:0;
color:$textcolor;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}

Instead of "WEB URL OF YOUR PICTURE" copy paste the URL of your picture at Google Pages from Step 1. The third line describes the position of the image. The first figure (120%) controls horizontal placement. The second, vertical (10%). Negative percentages will move the image up or to the left, in relation to the containing element. The repeat attribute controls tiling. If instead of 'no-repeat' you add 'repeat-x' itwill tile horizontally and 'repeat-y' will tile it vertically. The scroll attribute means your picture moves along with the textwhen you scroll up or down. If you want the picture to remain fixed while your text scrolls past it or over it when you use it as a background then change 'scroll' to 'fixed'


Save Template. Refresh Cache. View blog.



TO MAKE A CLICKABLE IMAGE BACKGROUND ON YOUR BLOG

First locate the image and upload it to a free hosting account like Google Pages. Copy the URL of your image and keep. 

Then create a division to hold the image on your web page. This is done by pasting the following code in your CSS :

#imageholder {
float:right;
}

This positions the image in the upper right hand corner of your blog.

The Clickable Image is rendered by pasting the following code after the <body> tags :

<div id="imageholder"> 
<P><A title="TITLE OF YOUR BLOG" href="URL OF YOUR BLOG"><IMG border="0" src="GOOGLEPAGES URL OF IMAGE" alt="ALT. TITLE FOR TEXT BROWSERS AND SEARCH ENGINES" ></A></P>
</div>

In HTML the <img> tag has no end tag.

In XHTML the <img> tag must be properly closed.

Save Template..............


Like Us.... Receive updates on your Facebook wall!!!!
 

Something About Author:

Page Views

Visitors

free counters
Follow Me on Pinterest

Follow Us:

Do Not Copy

Google PageRank Checker Powered by  MyPagerank.Net