Home > Tutorial > Blogger Thumbnail Gallery
Blogger Thumbnail Gallery
Posted on Tuesday, November 2, 2010 by android apps market for tablests
I have been wanting to post a tutorial on this for quite some time now. In this tutorial, you will learn how to arrange images in a thumbnail-gallery-like-format. That means, your images will be close to each other, making a 2x2 or any other dimension that you define. Here's an example of what you will achieve:
I will be using the above four images in this simple tutorial.
I will be using the above four images in this simple tutorial.
Step 1:
First, you gotta upload the pictures that you want to use using Compose Mode. Use Blogger's updated editor if you want to follow this tutorial, although the idea works just fine with any editor. Next, click on the image once, and click the left most option to make your image small. Refer to the image below:
Doing this will make your image small. Smaller image allows more images to be added in a row. Say you want 4x2 gallery, your individual image size must be really small. You gotta do the maths and decrease your image's width accordingly. You can make your image even smaller by adjusting its width in Edit HTML mode,but that's tangential to this tutorial so I'll cover that on another tutorial if I care enough about that click here to find out how to do it.
First, you gotta upload the pictures that you want to use using Compose Mode. Use Blogger's updated editor if you want to follow this tutorial, although the idea works just fine with any editor. Next, click on the image once, and click the left most option to make your image small. Refer to the image below:
Doing this will make your image small. Smaller image allows more images to be added in a row. Say you want 4x2 gallery, your individual image size must be really small. You gotta do the maths and decrease your image's width accordingly. You can make your image even smaller by adjusting its width in Edit HTML mode,
Step 2:
We will be styling our images in this step. Once you have completed the previous step, locate the HTML portion of the images by clicking on Edit HTML. Here's my HTML portion for the above four images:
My modified code looks like this now:
We will be styling our images in this step. Once you have completed the previous step, locate the HTML portion of the images by clicking on Edit HTML. Here's my HTML portion for the above four images:
<div class="separator" style="clear: both; text-align: center;">Nothing special above, it's just some normal unedited HTML codes for some uploaded images. So to prep it for our gallery, we want to make one minor adjustment. See the highlighted lines above, 2, 7, 12 and 17. Replace the part that says style="margin-left: 1em; margin-right: 1em;" with style="margin-left: 3px;"
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s1600/P1010353_edit.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s200/P1010353_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s1600/P1010354_edit.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s200/P1010354_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s1600/P1010363_edit.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s200/P1010363_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s1600/P1010364_edit.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s200/P1010364_edit.JPG" width="200" />
</a></div>
My modified code looks like this now:
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s1600/P1010353_edit.JPG" imageanchor="1" style="margin-left: 3px;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s200/P1010353_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s1600/P1010354_edit.JPG" imageanchor="1" style="margin-left: 3px;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s200/P1010354_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s1600/P1010363_edit.JPG" imageanchor="1" style="margin-left: 3px;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s200/P1010363_edit.JPG" width="200" />
</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s1600/P1010364_edit.JPG" imageanchor="1" style="margin-left: 3px;">
<img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s200/P1010364_edit.JPG" width="200" />
</a></div>
Step 3:
Now that we have prepared our image codes, it's time to create a skeleton for our table. Like I said before, we will be creating a 2x2 table. The following is the HTML to create a basic table.
Now that we have prepared our image codes, it's time to create a skeleton for our table. Like I said before, we will be creating a 2x2 table. The following is the HTML to create a basic table.
<table cellpadding="0" cellspacing="0" align="center">Just a quick example, the skeleton HTML for a 3x2 table would look like this:
<tr>
<td>Image1</td><td>Image2</td>
</tr>
<tr>
<td>Image 3</td><td>Image 4</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>Image1</td><td>Image2</td><td>Image3</td>
</tr>
<tr>
<td>Image4</td><td>Image5</td><td>Image6</td>
</tr>
</table>
Step 4:
What is there left to do? Take the resultant codes from Step 2 and insert them into the table skeleton of Step 3. We have four HTML portions for each image. Copy the first one, and replace the text 'Image1'. Do this for the other three as well. My final code looks like this:
And there you have it, your very own cute thumbnail galleries.
What is there left to do? Take the resultant codes from Step 2 and insert them into the table skeleton of Step 3. We have four HTML portions for each image. Copy the first one, and replace the text 'Image1'. Do this for the other three as well. My final code looks like this:
<table cellpadding="0" cellspacing="0" align="center" >Note: If there seems to be extra spacing between your images, make sure you did not include any line breaks in your image's HTML (pressing enter between tags will introduce a line break).
<tr>
<td><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s1600/P1010353_edit.JPG" imageanchor="1" style="margin-left: 3px;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijoL2wvNe6QyBwv3ADMBtMGgTOZsydt0ovSLay4jgXXJepLoqomZ7sTwsXX9_wzTn7MuD0KphcRCRHP4o51xrvRkuyIYk7S6l3oeHwy4n0ZVW6w881H3x-1R7xG-ISgtQLTpBBCH-nBBkq/s200/P1010353_edit.JPG" width="200" /></a></div></td><td><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s1600/P1010354_edit.JPG" imageanchor="1" style="margin-left: 3px;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwGsEyGMxeWlV8KlRSrjg_vL-Bz7yhz5ZdVgJcZMKFQoPqfY9_pkytjwFB0rvoGl0Ct9Tuy-RHUkIoRuqpkWpS37oAf4-DG7J6e7YK2Kl8dTkMmRifhxS3ZS9Gzor84Q4WGPmkzbeIUjQD/s200/P1010354_edit.JPG" width="200" /></a></div></td>
</tr>
<tr>
<td><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s1600/P1010363_edit.JPG" imageanchor="1" style="margin-left: 3px;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQuGXbuL3wQNyspTNNl7ob7DQxGHoVTCozGGGMHbUr3OZpa7SR6-l1JdpF5GXeYiSycsjW_O4nvzj0UIiDcJWxAjQ4nlfpYr9EmW4q9aH1NWBDRw1biSjTPsRWI5VoKncfJEIWmtQ_vRra/s200/P1010363_edit.JPG" width="200" /></a></div></td><td><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s1600/P1010364_edit.JPG" imageanchor="1" style="margin-left: 3px;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqqWOqVBWcBmRL2zKCOQ6viycoOsDVPKxya5b2g8sm4sHZG0VwzakuMwJlrVdiCl_ZkIBGD2B4DEIZllslMer_WGyMcEMWQ0emF1YvK1P8K9B_4a_JobXTwpa6V3zDjdc0gR8AOK50Gj91/s200/P1010364_edit.JPG" width="200" /></a></div></td>
</tr>
</table>
And there you have it, your very own cute thumbnail galleries.
Category Article Tutorial
Powered by Blogger.
Blog Archive
-
▼
2010
(1682)
-
▼
November
(197)
- Info Product "T-Mobile Comet " 3G HSDPA Android P...
- Full Info Specification "Samsung A667 Evergreen" 3...
- Video: How To Hotpot
- Adding Buttons to Blogger Header
- Info Specification "Motorola MOTO MT716" Android S...
- New Info Product "Nexian Sound Box(Nexian NX-G509)...
- Namesake
- When Nature Pays A Visit
- iTunes won't backup iPad when syncing
- Info Specification about "Nokia C2-01" Handphone M...
- Info Specification Product "LG GS390 Prime" 3.0 in...
- No sound in apps since iOS 4.2 update
- Spirits for iPad
- How to Fix iPad No 3G service after 4.2 upgrade
- UNLOCKED DELL STREAK�S WITH NEW COLOR CHOICE AND ...
- APPLE IPAD ACASE SLIMLINE PREMIUM LEATHER CASE FOR...
- FUJITSU DISPLAYS A NEVER BEFORE SEEN 10-INCH WINDO...
- ACER UNVEILS SLIM AMD BASED WINDOWS 7 10-INCH TABL...
- ASUS U36 ULTRATHIN NOTEBOOK WITH CORE I3 & I5 13.3...
- iPad 2nd generation brings new features
- NETBOOK COMPAQ MINI CQ10-405DX AND CQ10-525DX
- TOP 10 BLACK FRIDAY WEB HOSTING DEALS
- Blogger Floating Footer
- T-mobile BOGO Promotion Now Begin
- Christmas Countdown Gadget
- How to get screen rotate lock switch back iPad iOS...
- Mail app crashes routinely on iOS 4.2.1
- iPad battery drains in sleep mode on iOS4.2
- iPad Notes only in landscape mode after upgrading ...
- Info Specification Product "T-Mobile Vibe E200" Ch...
- IOS 4.2 DIRECT DOWNLOAD LINKS LIST
- SONY PLAYSTATION PHONE SPECIFICATION
- Open Blogger Links in New Tabs
- How I�m Using Hotpot to Plan My Thanksgiving Weekend
- AirPrint - No Mail Print Icon but Safari and Photo...
- How to delete Game Center from iPad?
- MobileMe Account not verified with Find my iPad
- Product Info Specification Android Smartphone "Mot...
- Map Your Favorite Places Along the Macy�s Parade R...
- IDs and Classes for Beginners
- Remove Space between Blogger Posts
- Remove Space between Gadgets in Blogger Sidebar
- iPad stuck on cancelling sync
- AirPrint Setup on the iPad
- Most-Rated Google Places
- We Have Gone to SouthernSpeakers.net
- Music, Videos lost after iPad updated to iOS 4.2
- How Many iPad Apps and Folders Can I Have?
- How to Use AirPlay For Videos, Photos and Music
- Big Bad Sudoku Book - Game Center game
- iOS 4.2 AirPrint compatible printers
- iPad mute switch doesn't mute on iOS 4.2.1
- Lunch is on Google
- NEW TABLET ANDROID TOSHIBA FOLIO 100
- Siemens GreenTouchscreen� - Higher Education
- Nokia World's first ice touchscreen virtually burns
- Resize Blogger Post Image
- Update Apps Before updating to iOS 4.2 for iPad
- Trucks and Skulls HD
- iTunes Connect Mobile for iPad
- T-mobile 's "4G Sweepstakes" Contest
- HTC Released myTouch 4G Source Code
- Christmas Tale for iPad
- iPad crashes when scrolled through photos in iPhotos
- Hotpot's First Week
- Remove Blogger Static Page Titles
- How to get started with Game Center on iPad
- iOS 4.2 for iPad Release Date Delayed Again
- Info New Produk With Great Specs "LG L-03C" 12MP C...
- InFo Complete Specification Product "LG C320 InTou...
- Upload Multiple Pictures with Blogger's Updated Ed...
- Reposition Blogger Header Image
- Google Sky Map- now with time travel
- Google Sky Map- now with time travel
- Talking Gremlin HD - Entertainment app
- Running android OS on your iPad
- How to add PDF files to iBooks & read them on your...
- Info Complete Specification "Sony Ericsson Xperia...
- Information Product Specification CDMA Android Pho...
- AmazonWireless myTouch 4G Now Only $49 on Backordered
- Latest myTouch 4G Ad - Still Hits AT&T
- Editing your Google Docs on the go
- Editing your Google Docs on the go
- Info Product Specification "Samsung Nexus S (Samsu...
- review "ZTE Peel" Change Ipod Touch Into Iphone
- Introducing the Hotpot Blog
- Google Voice for iPhone
- Google Voice for iPhone
- Offline, meet online: a marketing experiment with ...
- Offline, meet online: a marketing experiment with ...
- Should I Upgrade iPad to iOS 4.2?
- EyeTV Enables Satellite TV on iPad running iOS 4.2
- Can't stop Mail checking email on iPad
- Android 2.3 Gingerbread Features
- Eric Schmidt teases Nexus S with Gingerbread
- Personally Yours on the Go - Personalized Recommen...
- Personally Yours on the Go - Personalized Recommen...
- Complete Info Specification of Android Phone "Dell...
- Review LG 4G Modem and Pantech UML290 VL600 4G W...
- Google Shopper 1.3 adds search filters and feature...
-
▼
November
(197)
