beautiful css sprite design with hover effect in blogger

Hi friends in this post I am sharing awesome css sprite design with hover and you can use it on blogger.If you have photoshop,notepad++ ,you can able to design awesome design css sprites.And thanks to w3 schools which helps me to learn more and more things.I recommend you to study w3schools if you are new to html,css codings.


Loads images fast due multiple images are used as single image thus increasing  webpage load faster.


  • First goto photoshop and design simple navbar with different images and merge down to  single image.Kindly set all images  height and width same which will be easy to analyse and to write code

  • For sample use the below image.Save it in desktop and open with google chrome browser.Copy the url and use that url in  below code instead of kulu.png
  • Now open notepad++,copy and paste the below code and save in html format.
#nav li{margin:0;padding:0;list-style:none;position:absolute;top:0;}
#nav li, #nav a{height:100px;display:block;}
#h{background:url('kulu.png') 0px 0px;}
#h a:hover{background: url(‘kulu.png')0 -109px;}
#r{background:url('kulu.png') 100px 0px;}
#r a:hover{background: url('kulu.png')100px -109px;}
#m{background:url(‘kulu.png') 200px 0;}
#m a:hover{background: url('kulu.png')200px -109px;}
#a{background:url('kulu.png') 300px 0px;}
#a a:hover{background: url('kulu.png')300px -109px;}
#p{background:url('kulu.png') 400px 0px;}
#p a:hover{background: url('kulu.png')400px -109px;}
<ul id="nav">
<li id="h"><a href=""></a></li>
  <li id="r"><a href=""></a></li>
  <li id="m"><a href=""></a></li>
  <li id="a"><a href=""></a></li>
  <li id="p"><a href=""></a></li>

  • In the above code nav id is used for positioning .Main thing you have to change here is the width,height,left options to make perfect hover effect.
  • Now check it in browser if you are satisfied with it goto blogger.
  • Upload the image,Right click and copy “copy link address” and use the above code in post or page and choose html and not compose then replace kulu.png with the copy link address.Replace hyperlinks with your links.
  • Click save and publish.Now you see the css images sprites working with hover effect.
See a sample below,

Print Friendly and PDF

About me

Hi. I am interested in blogging.And sometimes play with webdesign,web development,domain sale,designing logo and more.

    Blogger Comment
    Facebook Comment


Post a Comment