So, today I was playing around a bit with CSS and I was thinking that it would be cool to add some fresh styles to the Popular Posts widget in such a way to look just ready for the forthcoming Christmas holiday.
![how to add popular posts widget for christmas to blogger popular posts widget, blogger gadgets](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE5y3rLoEQm_eY5FUYcEHJHtm2d4nj_kOI1KPR5PS51A5qHCyeN4T1rtIurDhRu0yGT5ojlVnYebjQYtAonlXqPp1NsnlqpC5JHNLSU1dsgaMJaUr8M_m_l_o_UevrGf5ykyoB225RyNEl/s1600/popular-posts-widget-for-blogger-with-christmas-bells-sounds.png)
To see a demo for the Popular Posts widget for Christmas, please visit the demo blog:
How to Add Popular Posts Widget with Christmas Bells in Blogger
Step 1. Log in to your Blogger Dashboard, then go to 'Template' and click the 'Edit HTML' button:![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpGyJTnFpW5LgzPKwRn9HX57cwLariCWKtPNPD9VNwVg1NVK3IzZ25lbEMKXgzEtpnJKTsPX2oQ2RLiuimEzSNW7G8V2SIS_dOTVLOFD_PC1anWOc_KALIRnMu0Hf2dAtvzg-scPQsYvkP/s320/blogger_blogspot_template_edit_html_tutorial.png)
Step 2. Click anywhere inside the code area and press the CTRL + F keys, then search for this tag:
</head>Step 3. Just above the </head> tag, add the following CSS code:
<style>Step 4. Click the 'Save Template' button to save the changes and you're done. Enjoy!
#PopularPosts1 .item-thumbnail:before{
display: block;
content: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgubFs1_YHN2kiIgFGgfInqhuNlivZT6ajehJKT9iVFOTe4210D8rxUY906s1_bck2nHgxsi-HBnoW4UWZ6hIkYt6qs1-rhvk_NsC9C6ZNiOQX5YGD1oONjNBvobwT0ktbWaTtfKTzv0wWt/s1600/bells.png');
margin-left: -15px;
margin-top: -5px;
z-index: 2;
position: absolute;
}
#PopularPosts1 .item-thumbnail img{
float:left;
margin:5px;
padding: 2px;
border: 6px solid #FED74C;
height: 72px;
width: 92px;
position: relative;
background: #F11C25;
-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
-moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
transition: opacity 1s ease;
}
#PopularPosts1 ul li:nth-child(odd){
-ms-transform:rotate(20deg); /* IE 9 */
-moz-transform:rotate(20deg); /* Firefox */
-webkit-transform:rotate(20deg); /* Safari and Chrome */
-o-transform:rotate(20deg); /* Opera */
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
#PopularPosts1 ul li:nth-child(even){
-ms-transform:rotate(-40deg); /* IE 9 */
-moz-transform:rotate(-40deg); /* Firefox */
-webkit-transform:rotate(-40deg); /* Safari and Chrome */
-o-transform:rotate(-40deg); /* Opera */
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
#PopularPosts1 ul li:nth-child(odd):hover{
-ms-transform:rotate(0deg); /* IE 9 */
-moz-transform:rotate(0deg); /* Firefox */
-webkit-transform:rotate(0deg); /* Safari and Chrome */
-o-transform:rotate(0deg); /* Opera */
}
#PopularPosts1 ul li:nth-child(even):hover{
-ms-transform:rotate(0deg); /* IE 9 */
-moz-transform:rotate(0deg); /* Firefox */
-webkit-transform:rotate(0deg); /* Safari and Chrome */
-o-transform:rotate(0deg); /* Opera */
}
#PopularPosts1 ul li{
display: inline-block;
float: left;}
#PopularPosts1 .item-thumbnail{
width: 70px;
}
#PopularPosts1 li{
margin-right: 15px;
}
#PopularPosts1 .item-snippet, .item-title{
display: none;
} </style>
Also, please check out this tutorial on how to add falling snowflakes in the background of a Blogger blog.
No comments:
Post a Comment