Change image on mouseover (hover)

Posted by | Posted on 11:30 PM

These days I spent many hours designing and creating my template because I want to make it look professional and beautiful. I`m still working on my template but soon it will be ready. During this time I used many effects like changing an image on mouseover (hover). This can be done with three methods ,one using a short javascript code and one using a bit longer CSS code, one using CSS sprites.



1. Using javascript
This code doesn`t need any CSS code , just change the URLs of the images.

2. Using CSS
This method is more advanced, place the first piece of code , the CSS part right before ]]> ,the HTML part of the code can be placed anywhere between and or even inside a gadget (sidebar).
The CSS part of the code:
.class-name {
display:block;
background-image:url(http://first-image.jpg);
width:100px;
height:100px;
}
.class-name:hover {
background-image:url(http://second-image.jpg);
}
The HTML part of the code:
NOTE: Use the same class name at both of codes , you can use any name. Change the width and height attributes to the size of you image , if the first and second images have different size place the width and height attribute of the second image after the line with the URL of the second image.

3. Using CSS Sprites
I will write more about this method in another post more detailed.





Cute comments area for blogger

Posted by | Posted on 8:43 PM

These days I was searching for problems of bloggers to solve when I noticed that none of Blogger blogs have the comment avatar images on the right side. Only Wordpress blogs have this feature to set the position of the avatar images. I`ve spent two days finding a solution when I decided to customize the entire comments area. I think my comments area is now pretty cool, but it`s difficult to install it. Please read with attention, follow the steps bellow carefully and BACK UP your template!


Here is an image about my comments area, later in this tutorial I will show you how to customize it:
Installing this comment area form
This is pretty difficult, read with attention!

1. Go to your Dashboard, Layout , Edit HTML and check in the Expand Widget Templates checkbox.

2. Find the following code (Ctrl + F and type in comments-block):


























3. Replace the above code with the following one:4. Find the following codes and remove them:
Your code may be a little different , search for the starting tags
#comments-block {
margin:1em 0 1.5em;
line-height:1.6em;
}
#comments-block .comment-author {
margin:.5em 0;
}
#comments-block .comment-body {
margin:.25em 0 0;
}
#comments-block .comment-footer {
margin:-.25em 0 2em;
line-height: 1.4em;
text-transform:uppercase;
letter-spacing:.1em;
}
#comments-block .comment-body p {
margin:0 0 .75em;
}
Customizing the comments area

Find the ]]> line and place the following code BEFORE it!
#comments-block3 {
padding:0;
margin:0;
float:left;
overflow:hidden;
}
#comments {
padding:0;
margin:0;
}
#comment-name-url {
width:465px;
float:left;
}
#comment-date {
width:465px;
float:left;
}
#comment-header {
float:left;
border:1px dotted rgb(187, 187, 187);
padding:5px 0 5px 10px;
margin:5px;
background: rgb(238, 238, 238);
}
.avatar-image-container {
background:url(http://i645.photobucket.com/albums/uu178/coolboycsaba/no-avatar4.jpg);
width:48px;
height:48px;
float:right;
margin:5px 10px 5px 5px;
}
.avatar-image-container img {
border: 1px solid white;
width:48px;
height:48px;
}
a.comments-autor-name {
color:#088A08;
font-weight:bold;
font-size: 12px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
a.says {
color:black;
font-weight:bold;
font-size: 12px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
.says a:hover {
text-decoration: none;
}
a.comment-permalink {
color:#088A08;
font-weight:normal;
font-size: 10px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
1. Change the size of the avatar image
Customize the size of the comments to fit to your template:
First change the size of the avatar images:
.avatar-image-container {
background:url(http://i645.photobucket.com/albums/uu178/coolboycsaba/no-avatar4.jpg);
width:48px;
height:48px;
float:right;
margin:5px 10px 5px 5px;
}
.avatar-image-container img {
border: 1px solid white;
width:48px;
height:48px;
}
To change the size of the avatar images replace the red marked values to any number of pixels. Use the same at all red marked code lines.
Now change the size of the comments area:
#comment-name-url {
width:465px;
float:left;
}
#comment-date {
width:465px;
float:left;
}
The size of the comments area is depending on the size of the main-wrapper and on the size of the avatar image: e.g:
(main-wrapper)550px - (avatar image)48px - (paddings , margins and borders)37px = 465px

The padding and margins size is in bold because it`s always 37px, calculate the size of your comments area size and use the result as the value of the red marked code lines.

2. Change the colors
To change the background color of the comments change the red code line , to change the color of the border change the blue code line to any color.
#comment-header {
float:left;
border:1px dotted rgb(187, 187, 187);
padding:5px 0 5px 10px;
margin:5px;
background: rgb(238, 238, 238);
}
e.g:
#comment-header {
float:left;
border:1px dotted red;
padding:5px 0 5px 10px;
margin:5px;
background:#FF00FF;
To change the color of the comment author name change the red marked code line , to change the color of the comment posted date change the blue marked code line, to change the color of the says word change the green marked code line.
a.comments-autor-name {
color:#088A08;
font-weight:bold;
font-size: 12px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
a.says {
color:black;
font-weight:bold;
font-size: 12px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
a.comment-permalink {
color:#088A08;
font-weight:normal;
font-size: 10px;
font-style: normal;
font-family: Arial, Tahoma, Verdana;
}
3. Change the border types
Here are the border types to chose from, every comment have a border.
#comment-header {
float:left;
border:1px dotted rgb(187, 187, 187);
padding:5px 0 5px 10px;
margin:5px;
background: rgb(238, 238, 238);
}
Dotted
-this is the default , don`t change the red marked code

Dashed
-to use this type of borders change the value of the red marked word to dashed

Solid
-change the red marked word to solid

4. Change the No-Avatar image:
.avatar-image-container {
background:url(http://i645.photobucket.com/albums/uu178/coolboycsaba/no-avatar4.jpg);
width:48px;
height:48px;
float:right;
margin:5px 10px 5px 5px;
}
Change the URL (marked with red) with the URL of your image, please change it or download the image and upload it to your own host or photobucket , don`t steal my bandwidth!
Save your template!

Well done! If you have followed all the above steps carefully your comments area is pretty cool and it`s ready to use!
NOTE: Please don`t remove that small link at the end! Thanks my reading our blog!





Write a Guest Post

Posted by | Posted on 9:51 PM

Help us to grow our blog! Contribute to our community by interacting with us and by sending us your posts about your SEO experiences or blogger template editing.
Your name with the name of your website/blog will be displayed with a DoFollow link to your website/blog at the end of your article.
You will receive some visitors from this blog. More higher is the quality of your post than more higher will be the number of visitors.



The rules - read them!

Don`t submit duplicated or stolen articles!
Don`t submit the article to other blog ,select: submit only to this blog or if you have submitted allready to another blog please don`t submit it!
Write only about thinks what you know about ,write accurate post.

How to send an article:

Send your post via email to me:
Please send your article to seo_tips_blogger@yahoo.com
Please include:
your name
the name of your website/blog
the address of your website/blog
the title of your post
the content of your post
Thanks for contributing to OUR community!





How to change the background color of your blog

Posted by | Posted on 12:36 AM

Change the background of your blog to any color you want, or even change the color with an image. First you need to understand the structure of your blog template. The header, the sidebar, the posts and the footer are in the outer-wrapper. The rest of the page is the body. Changing the background color of the body will change the background of the outer-wrapper, too, but the background of the outer-wrapper can be changed separately ,so it`s possible to use different backgrounds for the body and the outer-wrapper.

1. First let`s change the background of the body: Go to Layout, Edit HTML Find the following code:
body { background:$bgcolor; margin:0; color:$textcolor; font:x-small Georgia Serif; font-size/* */:/**/small; font-size: /**/small; text-align: center; }
Look for the line what i have marked with red, the rest of the code may be different.
Replace the background:$bgcolor; tag (this may be different, just look for the first part of the code: background:) whit one of the following codes.
1. Use a color:
background:#000000;
or
background:rgb(0,0,0);
Here is a list of HEX and RGB colors to use.
2. Use an image:
background:url(http://the-url-of-the-image.jpg);
2. Now let`s set the background of the outer-wrapper:
Find the following code:
#outer-wrapper {
width: 660px;
margin:0 auto;
padding:10px;
text-align:$startSide;
font: $bodyfont;
}
Search for the first line of the code , the rest of the code may be different.
Now just do the same as at the body.
And don`t forget to save your template.