Skip to main content

Add a Clean/Dark Featured Content Slider to Blogger with CSS and JavaScript

Here's another clean featured content using CSS and JavaScript. This featured content slider holds a mini-gallery for previews right underneath it's images which can also be used for navigation. Right above the mini-gallery there's also another mini-navigation with an "i" embedded right in the middle. Readers can click on this "i" for more information on the featured content.

Add these scripts to your header:
<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/>

Provided here is the CSS and HTML section code to implement this tutorial.
CSS section code (This section code should be placed right before the closing head tag.)
<style type="css/text">/* ================================================================ 
This copyright notice must be untouched at all times.
Copyright (c) 2009 Stu Nicholls - - all rights reserved.
=================================================================== */

#slideshow {width:579px; height:465px; margin:0 auto; position:relative; background:#222;
-o-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
-icab-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
-khtml-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
-webkit-box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);

-o-border-radius: 10px;
-icab-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
#thumbs {width:510px; height:48px; overflow:hidden; position:absolute; left:49px; top:400px; z-index:10;}
#thumbHolder {position:relative; top:0; left:0; width:490px;}
#thumbs img {display:block; float:left; margin-right:8px; margin-bottom:6px; display:inline; padding:1px; background:#aaa; cursor:pointer; width:60px; height:40px;}
#images {width:510px; height:320px; position:absolute; left:35px; top:25px; overflow:hidden; z-index:10; border:1px solid #888; background:#222 url( no-repeat 230px center;}
#images img {position:absolute; left:510px; top:0;}
#txt {position:absolute; left:36px; top:26px; width:509px; height:320px; width:517px; z-index:20;overflow:hidden;}
#opacity {position:absolute; left:0; top:-360px; width:509px; height:322px; background:#000; z-index:10;}
#txt p {padding:5px; margin:0; width:500px; height:310px; color:#ddd; font-family:arial, sans-serif; font-size:12px; line-height:18px; position:absolute; z-index:20; top:-360px; left:0;}
#txt p span {font-weight:bold; font-size:14px; color:#fff; display:block; padding-bottom:10px;}
#txt a {color:#0ae;}
#txt a:hover {text-decoration:none;}
#pad {width:48px; height:48px; background:url(; position:absolute; left:268px; top:348px;}
#pad p {margin:0; position:absolute; width:14px; height:0; padding-top:14px; overflow:hidden; cursor:pointer;}
#pad p#previous {left:0; top:17px;}
#pad p#next {right:0; top:17px;}
#pad p#scrollUp {left:17px; top:0;}
#pad p#scrollDown {left:17px; bottom:0;}
#pad #info {left:17px; top:17px; width:16px; height:0; padding-top:16px;} </style>

HTML section code (This section code should be placed where you would like the featured content to appear. This can be done by adding a new gadget under page elements, or applied directly within the HTML section of the template.)
<div id="slideshow">
<div id="thumbs">
<div id="thumbHolder">
<img src="" alt="featured-project-icons" width="64px" height="42px"/>
<img src="" alt="featured-css-list" width="64px" height="42px"/>
<img src="" alt="featured-childish-icons" width="64px" height="42px"/>
<img src="" alt="featured-professional-css-hover" width="64px" height="42px"/>
<img src="" alt="featured-project-icons" width="64px" height="42px"/>
<img src="" alt="featured-css-div-comments" width="64px" height="42px"/>
<img src="" alt="featured-project-icons" width="64px" height="42px"/> 


<div id="txt">
<div id="opacity"></div>
<p><span>Photograph No.1</span> Lorem ipsum dolor sit amet, <a href="#url">consectetur adipiscing elit</a>. Fusce viverra ante tincidunt velit dictum consectetur. Nulla facilisi. Mauris odio magna, egestas nec convallis ut, adipiscing quis elit. Integer gravida ultrices nunc, in consequat arcu iaculis iaculis. Aliquam vitae augue vitae dui gravida lacinia ac suscipit ipsum. <a href="#url">Aliquam erat</a> volutpat. Phasellus quis dui libero. Praesent sodales tristique urna, ut condimentum dolor varius ac. Donec id tellus est. Nam tincidunt sem nec neque cursus eget convallis libero condimentum. Nam feugiat iaculis libero sit amet fermentum. Vivamus pharetra bibendum rutrum. Suspendisse dolor mi, pellentesque sit amet laoreet et, aliquet in ligula. </p>
<p><span>Photograph No.2</span> Maecenas cursus ornare mauris, eget lacinia quam sollicitudin ac. Nullam nec ipsum vel nibh fringilla facilisis. Fusce dapibus libero dolor. Fusce id leo dolor, id dapibus quam. Nulla cursus semper quam, iaculis ornare dolor eleifend eu. <a href="#url">Suspendisse turpis diam</a>, cursus mollis facilisis nec, aliquam eu tortor. Quisque tincidunt tristique odio et semper. Cras aliquet, quam eget iaculis volutpat, nulla lorem pulvinar sapien, vel dignissim magna turpis nec felis.</p>
<p><span>Photograph No.3</span> Phasellus dignissim ullamcorper libero eget convallis. Aliquam ut libero est. Aenean leo risus, gravida rhoncus ultricies non, vehicula eget risus. Curabitur sit amet est metus. Vestibulum posuere nisl eu risus hendrerit rhoncus. Maecenas in molestie eros. <a href="#url">Vestibulum erat quam</a>, pulvinar eu congue et, aliquam vitae quam. Morbi ornare, nunc et tristique egestas, ligula leo placerat lectus, a suscipit tortor magna quis felis.</p>
<p><span>Photograph No.4</span> Suspendisse risus sapien, iaculis et rutrum eget, feugiat sit amet tellus. In sed dolor sem. Proin hendrerit, turpis a mollis blandit, purus purus lobortis mauris, dignissim aliquet metus erat eu lacus. Vestibulum lobortis fringilla nisi, non blandit mauris porta at. Donec in dapibus elit. <a href="#url">Integer interdum</a>, sapien quis posuere dapibus, magna eros volutpat ligula, ut volutpat libero magna lobortis tortor. Ut sagittis placerat vestibulum. Nulla vitae libero ut sapien tempus egestas.</p>
<p><span>Photograph No.5</span> Pellentesque suscipit velit eget quam sagittis faucibus. Quisque sed urna at sapien tristique commodo. Suspendisse potenti. Duis laoreet viverra ligula, et posuere urna vehicula ut. Nam ullamcorper erat a lectus lobortis aliquet mattis sit amet ipsum. <a href="#url">Nam vel tellus vitae</a> tortor molestie dapibus et ultricies nisl. In in tincidunt urna.</p>
<p><span>Photograph No.6</span> Sed ac gravida ante. Phasellus viverra consectetur diam, et commodo nibh fermentum a. Sed lobortis diam eu enim scelerisque pretium. <a href="#url">Aliquam eleifend</a> vestibulum lacus eu egestas. Donec non justo nibh, sed mollis orci. Proin eget lacinia sem. Sed sollicitudin metus in nisi lobortis at elementum mi pellentesque. Etiam nec est at urna bibendum malesuada. Ut tincidunt, tellus non vulputate consequat, felis sapien luctus tellus, iaculis hendrerit risus enim quis diam.</p>
<p><span>Photograph No.7</span> Ut eget justo ultrices lacus viverra lacinia at non nisl. Donec pulvinar egestas nibh, id rhoncus dui facilisis in. Suspendisse potenti. Mauris ullamcorper nunc aliquam nisi mollis venenatis. Nullam pulvinar tristique lacus vitae elementum. <a href="#url">Nullam vulputate</a> risus sed magna fringilla at lacinia mauris ornare. Nullam ut congue magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
<div id="images">
<img src="" alt="featured-project-icons" width="510px" height="320px"/>
<img src="" alt="featured-css-list-enhancement" width="510px" height="320px"/>
<img src="" alt="featured-childish-icons" width="510px" height="320px"/>
<img src="" alt="featured-professional-css-hover" width="510px" height="320px"/>
<img src="" alt="featured-css-page-crease" width="510px" height="320px"/>
<img src="" alt="featured-css-div-comment-box" width="510px" height="320px"/>
<img src="" alt="featured-project-icons" width="510px" height="320px"/>
<div id="pad">
<p id="previous">previous</p>
<p id="next">next</p>
<p id="scrollUp">up</p>
<p id="scrollDown">down</p>
<p id="info">info</p>


  1. not in this post bro, but im currently using this featured as the blogspot visiion's slider..


Post a Comment

Popular posts from this blog

How to add a calendar icon as date header

From this tutorial, you will be able to add your very own calendar icon to your blogger! If you’re going to show the date on every post, why not do it with a little style and make it a little more appealing to viewers? If you want your calendar icon to appear on every post, read Blogspot Vision’s post on how to do that by clicking here to go to the post. Let’s get started but first and foremost, make sure you back-up your existing template, just in case it doesn’t turn out as expected. Steps to follow:1. Login to your Blogger dashboard2. Go to Layout > Edit HTML (Click on “expand widgets” box)3. Search for the following section code: ]]></b:skin>
and add the following section code below right before .date {
    height: 50px;
    width: 45px;
    background: url( no-repeat;
    font: normal 22px Arial;
    color: #666666;
    text-align: center;

CSS DIV boxes with drop shadows

This example shows how to add a drop shadow style to any container element using CSS. It does this by wrapping the desired content in a DIV with its background color set to a color of the desired color for the shadow. Another DIV is set for your content and is shifted slightly upwards and to the left to expose the shadow. The "master" DIV wraps it all up but is shifted to the right and downwards, returning the entire markup to it's original page position.

IE6 is not compatible with this example, but you can apply conditional HTML to hide the effect in that browser. In contrast, IE7 is compatible with this example for finally updating to proper CSS.

Note: If you will be using an image for your content, you should give ".shadowcontainer" an explicit height, reflecting that of the image's for fixed and set location when viewed.

CSS Code
<![if !IE 6]>
position: relative;
left: 5px; /*Number should match -left shadow depth below*/
top: 5px;…

How To Show The Post Date On Every Post

From this tutorial, you will be able to show the post date on every last one of your posts. As we all know, Blogger’s default templates only show a single date for every post that was posted that day. Some readers will find it convenient to have that quick glance at the date on each post, but some will not even notice. This tutorial is definitely handy if you plan to use a calendar icon as your post date, since the timestamp can be modified. As always, make sure you download your current existing template just in case it doesn’t turn out as expected.

Steps to follow:
1.Login to your Blogger dashboard.
2. Go to Layout > Edit HTML (click on “expand widgets” box)
3. Now search for the red line of code or similar code:Note: If you can’t seem to find the line in red, try the second section code in blue.<div class='post-feeds'>
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'>