Please don't click on these links yet.

Under construction: ? * # 0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Your opinion is needed with a new "FAQ" I'm thinking of writing up. Click on this "FAQ link" now and leave a comment if you can spare the time.
Tutorials : How I made it toolbars paginations buttons widgets tweeks mega tweeks everything else inspiration ideas FAQ problems Fixing problems

Create a basic photo gallery image

Saturday, May 19, 2012  at 9:56 AM
Let's say you'd like to do something a bit more fancy to your post images, and create something like a photo gallery design. Let's say you'd like to do this to your photo. See example 1.

My image for this tutorial example.
Example 1

Looks nice, doesn't it? So, how did I make it look like this? The first thing I done was to add an image without resizing it or aligning it. Then I clicked on the image and then selected the "Add caption" option. I replaced "Add caption" with the text "Example 1" and highlighted my text and selected the bold option for that text. That was just in the "Compose" tab. I then clicked on the "Edit HTML" tab. In the "Edit HTML" tab there is a caption code for where the "Example 1" text is. It looked like this in the beginning:

<tr><td class="tr-caption" style="text-align: center;"><strong>Example 1</strong></td></tr>

I then copied this code and placed it directly above the <tr></tr> code for the image. I then deleted the text "Example 1" and typed in "My image for this tutorial example." I highlighted those words and selected the italic option. Italic and bold options are best done in the "Compose" section - its just less confusing that way and quicker too. This then gave the entire code 3 table rows with the potential to add more code to each row. Next, in the above captions code example, I added some additional code to the "style" code area. I simply added a background colour, and a font colour to it. I also added a background colour (black which is #000) for the middle row where the image is located. Below is the end result of all the code for my example image (Example 1).

<table align="center" border="0" cellpadding="4" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td class="tr-caption" style="background: orange; color: black; text-align: center;"><strong><em>My image for this tutorial example.</em></strong></td></tr><tr><td style="background: #000000; text-align: center;"><a href="http://4.bp.blogspot.com/-uziXBt2kTAo/TIIhRj8jv5I/AAAAAAAAA8s/QXYMIvrhYlc/s1600/70239.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="256" mda="true" src="http://4.bp.blogspot.com/-uziXBt2kTAo/TIIhRj8jv5I/AAAAAAAAA8s/QXYMIvrhYlc/s1600/70239.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="background: #000; color: white; text-align: center;"><strong>Example 1</strong></td></tr>
</tbody></table>

As the image's background was not visible I added the number "4" to the entire table's cellpadding. That then displayed the black background behind the image. Everything in bold red is what I added or changed to the above code after the basic first image caption had been added. All these changes were done in the "Edit HTML section" except for the bold and italic options that were added to the captions text. They were done in the compose section. And there we have it. By simply adding a second caption row above the image and adding a bit of additional code to the "style" area and some table padding, we get a nice looking, almost gallery stylized looking image effect.

0 comments:

Your Answer Thanks for contributing an answer to Blogger Tutorials for everyone! Please make sure your answer is NOT a SPAM comment, as such comments will be deleted. Provide details and share your research. Avoid statements based solely on opinion; only make statements you can back up with an appropriate reference, or personal experiences. Comment Options to add to the form below:
Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.


Features:

To change your text to bold simply type in a left facing arrow then a UPPERCASE letter b then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /B and then a right facing arrow.

To change your text to italics simply type in a left facing arrow then a lowercase letter i then a right facing arrow. Then add your text, followed by typing in a left facing arrow, then type in /i and then a right facing arrow.

To change the colour of your text type in [co="red"]Add your text here[/co] You can change the colour of the text by either typing in the colour's word or by adding a hex colour code that includes the hash symbol.

Your text goes here. To add a marquee text type in [ma]Add your text here[/ma]

To add an image or gif type in [im]Add your image or gif URL here[/im]

Of course, you can add various combinations of the above to your comment as long as you place the ending tags in the right locations.

To add a Youtube video as a comment use either one of the two codes below and replace the video url with the one you want to add as a comment.
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-WATCH-PAGE-ON-YOUTUBE-HERE]
[video=ADD-ENTIRE-VIDEO-URL-THAT-YOU-VIEW-ON-THE-watch?feature=player_detailpage-HERE]

Scrollbox codes

<a target='_blank' title='DON'T TOUCH MY PHONE' href='ADDYOURURLHERE'><img src='https://lh4.googleusercontent.com/-qSyLJ0X94nk/T-_ekHbo_mI/AAAAAAAAHmY/qk0v-X5s32s/s320/58298-dont-touch-my-phone.png' border='0'/></a>

This free script provided by
JavaScript Kit

FAQ

YOUR OPINION COUNTS! A list of topics that I am thinking of writing about but need feedback from visitors before I go ahead with it.

Click to view more Pages
 

This site consists of tutorials that you would not normally see elsewhere. I am adding tutorials that I have either tweeked or created myself, using existing code already found on the Internet.

Back To Top Image by Cool Text: Logo and Button Generator - Create Your Own Logo

Scroll to Bottom Back to Top