Skip to main content

How to add a Polaroids Picture Gallery to Blogger using CSS3 and HTML

Adding a Polaroid Picture Gallery to your Blogger is a fairly simple tutorial. With a few snippets of codes and pictures of your own, you can add your very own Polaroid Picture Gallery to Blogger using HTML and CSS3.

Before you begin the tutorial; make sure to back up your current existing template in case it doesn't turn out as expected. 

Okay, lets get started. Begin by logging into your Blogger dashboard > Design > Page Elements. Once your on the "Page Elements" page, select "Add a Gadget" to add an "HTML/JavaScript" gadget.  The next step is to copy and paste the following snippet code below into your configuration box.
<p>
<ul class="polaroids">
       
<li>
<a href="http://www.blogspotvision.com/search/label/tutorials?max-results=6" title="Tutorials">
<img src="https://lh4.googleusercontent.com/-cOzeQsLqyUw/Tgp68po7YPI/AAAAAAAAB38/YSiYIBTokxQ/s288/tutorials.jpg" alt="" />
</a>
</li>

<li>
<a href="http://www.blogspotvision.com/search/label/icons?max-results=6" title="Icons">
<img src="https://lh6.googleusercontent.com/-_AfqKb0x0As/Tgp67pQhO0I/AAAAAAAAB3k/2B3ar-XGg2k/s288/icons.jpg" alt="" />
</a>
</li>
       
</ul>
</p>
<br class="clear" />
Note: You can exclude the <p> &</p> if you do not want your polaroids in a paragraph. Make sure you change the links and images to that of yours. To change the title located at the bottom of your polaroid picture, just change the "title" of your image (located in the link's HTML). If you want your title to be located on top; leave the image "title" blank, but add the title to the "alt" of your image's HTML. To add more polaroids, simply copy and paste another list; for example the snippet above shows two polaroid pictures.

The next step now is to style your polaroid picture gallery. To do this, simply add the following CSS snippet code to the opening of your head section.
<style type='text/css'>       
        ul.polaroids { width: 485px; margin: 0 0 18px -30px; }
        ul.polaroids li { display: inline; }
        ul.polaroids a { background: #fff; display: inline; float: left; margin: 0 0 27px 30px; width: auto; padding: 10px 10px 15px; text-align: center; font-family: &quot;Marker Felt&quot;, sans-serif; text-decoration: none; color: #333; font-size: 18px; -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.25); -moz-box-shadow: 0 3px 6px rgba(0,0,0,.25); -webkit-transform: rotate(-2deg); -webkit-transition: -webkit-transform .15s linear; -moz-transform: rotate(-2deg); }
        ul.polaroids img { display: block; width: 190px; margin-bottom: 12px; }
        ul.polaroids a:after { content: attr(title); }
       
        ul.polaroids li:nth-child(even) a { -webkit-transform: rotate(2deg);  -moz-transform: rotate(2deg); }
        ul.polaroids li:nth-child(3n) a { -webkit-transform: none; position: relative; top: -5px;  -moz-transform: none; }
        ul.polaroids li:nth-child(5n) a { -webkit-transform: rotate(5deg); position: relative; right: 5px;  -moz-transform: rotate(5deg); }
        ul.polaroids li:nth-child(8n) a { position: relative; right: 5px; top: 8px; }
        ul.polaroids li:nth-child(11n) a { position: relative; left: -5px; top: 3px; }
       
        ul.polaroids li.messy a { margin-top: -375px; margin-left: 160px; -webkit-transform: rotate(-5deg); -moz-transform: rotate(-5deg); }
       
        ul.polaroids li a:hover { -webkit-transform: scale(1.25); -moz-transform: scale(1.25); -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.5); -moz-box-shadow: 0 3px 6px rgba(0,0,0,.5); position: relative; z-index: 5; }
       
        code { background: rgba(0,0,0,.5); padding: 2px 3px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.75); -webkit-border-radius: 3px; -moz-border-radius: 3px; }
       
        ol.code { background: rgba(0,0,0,.75); margin-bottom: 18px; border: solid rgba(0,0,0,.75); border-width: 1px 1px 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; -webkit-box-shadow: 0 1px 1px rgba(255,255,255,.5); }
        ol.code li, ol.code li code { font-size: 14px !important; }
        ol.code code { background: none; }
</style>
Note: You can change the style of your polaroids with this CSS snippet code. If you need help stylizing your picture gallery, please don't hesitate to leave a comment and ask for help.

Comments

  1. nice, btw...this is for what?

    code { background: rgba(0,0,0,.5); padding: 2px 3px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.75); -webkit-border-radius: 3px; -moz-border-radius: 3px; }
    ol.code { background: rgba(0,0,0,.75); margin-bottom: 18px; border: solid rgba(0,0,0,.75); border-width: 1px 1px 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; -webkit-box-shadow: 0 1px 1px rgba(255,255,255,.5); }
    ol.code li, ol.code li code { font-size: 14px !important; }
    ol.code code { background: none; }

    cheers \m/

    ReplyDelete
  2. hmm.. i think i might've added extra coding there lol.. good catch my friend! ;]

    ReplyDelete
  3. Pengen yang lebih seru ...
    Ayo kunjungi wwwasianbet77com
    Buktikan sendiri ..

    Real Play = Real Money

    - Referal 5 + 1 % ( seumur hidup ) .
    - Cash Back up to 10 % .
    - Bonus Royalty Rewards setiap bulan .

    untuk Informasi lebih jelasnya silahkan hubungi CS kami :
    - YM : op1_asianbet77@yahoo.com
    - EMAIL : asianbet77@yahoo.com
    - WHATSAPP : +63 905 213 7234
    - WECHAT : asianbet_77
    - SMS CENTER : +63 905 209 8162
    - PIN BB : 2B4BB06A / 28339A41

    Salam Admin ,
    http://asianbet77.com/

    ReplyDelete

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 it:.post .date {
    height: 50px;
    width: 45px;
    background: url(http://www.blogspotvision.com/bspotvision/itheme-calendar.gif) 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]>
.shiftcontainer{
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'>
<da…