04 March 2008

The first among equals

May be I get bored with things pretty soon or may be I prefer to see the constant changes around me, that's why I'm standing against my previous (not-so-brilliant)idea of blogging different facets of my posts into different blogs, and now going through the blogs, it looks cumbersome to blog different posts in different blogs and besides the same distinction can be brought in using a category list. So I plan to post all my posts under one roof(read blog) and that is here.
Hope you all will appreciate the change too or will bear with it.
Luv
D

18 February 2008

Creating the sticky notes, your way

1. Login to Dashboard.
2. Click on Layout of the blog for which you want to create a sticky note.
3. Click on Edit HTML tab.
4. Add the following code just below the #header-wrapper code
#sticky-wrapper {
width:660px;
margin:0 auto 10px;
border:1px solid $bordercolor;
}

#sticky-inner {
background-position: center;
margin-left: auto;
margin-right: auto;
}

5. Now search for following code snippet in the code window;
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Customizing blogger (Header)' type='Header'/>
</b:section>
</div>

6. And add these lines of code just below the above code;

<div id='sticky-wrapper'>
<b:section class='sticky' id='sticky' maxwidgets='2' showaddelement='yes'>
</b:section>
</div>

7. Now click on SAVE TEMPLATE.
8. Click on the Page elements tab and then click on Add a Page Element link.
9. A new window will open, select HTML/JavaScript and click on ADD TO BLOG.
10. A window will open where you can insert your sticky note.
11. Click on SAVE CHANGES.
12. See your sticky for yourself!

NOTE: You can customize you sticky as well in this HTML/JAVASCRIPT window, with your choice of HTML tags.

Background Image for Blogger Template

With this guide, you will be able to
1. add a background image or picture to entire blog or to the posts only or to your sidebar only.
2. add a static background image that stays in place when you scroll through the contents of your blog.
3. customize the position of your image.

All you need to have is an image readily hosted in some image-hosting websites like flickr, picasa or any picture that you'll find on the net(googling).
Goto your image hosting site and take note of the picture URL.
Next, log in to your Dashboard click Layout and click Edit HTML, and search for the following code in the code window;
body {
background:$bgcolor;

and add the following code;
body {
background-image: url(URL address of your image);

Remember to insert the URL address of your image in the brackets.
Insert the URL of your image in the above brackets and Click Preview to see the feel of your blog.
If you like the page feel, save the template.

Background for sidebar:
You can also have a background image just for your sidebar. Locate the following code-snippet and add the background image code accordingly.
#sidebar-wrapper {

#sidebar-wrapper {
background-image: url(URL address of your image);

Background for posts:
For a background image to your main post body only, find the code-snippet #main-wrapper { and add the background-image code like the way I've done below;

#main-wrapper {
background-image: url(URL address of your image);

Repeating background image:
By default, the image is repeated to fill up the entire background of the page. If you have a small or tile-sized image, it will appear like a print pattern in the background. Sometimes, you dont want to have the image repeated. In such cases add the following code snippet in the place where you have added the above mentioned code;
background-repeat: no-repeat;

Alternatively, to repeat the image horizontally. The code is;
background-repeat: repeat-x;

To repeat the image vertically, the code is;
background-repeat: repeat-y;

Positioning background image:
If you dont want your image to be repeated and you want to specify the exact position of this image on your page, the code that to be inserted is;
background-position: top left;

The image will appear at the top left corner of your page. The other possible values that you can use to replace 'top left' are;
top center;
top right;
center left;
center center;
center right;
bottom left;
bottom center;
bottom right;

If you do not want it entirely left, right or center, you can also define the horizontal and vertical alignments either in percentage or in pixels. Use either of these values instead, with x being the horizontal value and y being the vertical value.
x% y%;
xpx ypx;

Static background image:
You can also make the background image to remain in a fixed position when the contents of your blog are scrolled. By default, the picture scrolls with your content. To make image pinned down while your text scrolls, the code you have to add is;
background-attachment: fixed;


Putting everything together
The final code that you will have for your customized template after altering according to this guide would look like;
body {
background-image: url(image url);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;

You can also combine the attributes into one line and the shorthand code will look like;
body {
background: url(image url) no-repeat center center fixed;

Removing the sidebar from your template

1. Go to Dashboard.
2. Click on Layout of the blog for which you want to remove the sidebar.
3. Click on Edit HTML.
4. In the template code, search for #main-wrapper code, which will look like this:
#main-wrapper {
width: 410px;
float: $startSide;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
5. Remove the entry width: 410px; and save the template by clicking SAVE TEMPLATE.
6. Voila! you are done.