More pictures in one row - or side by side pics

By default, when you upload pictures (images, or videos)) into your Blogger Posts, they are placed one after another. In one column.

The only thing we can choose, is to align them (left-center-right). There's no option to organize them so they can be next to each other, in one row (horizontal).
The best way to do this, is using the TABLES (if you want to know more about HTML Tables, visit www.w3schools.com).

1. You have to find out what is the WIDTH of your post area. To calculate how many pics can fit there. In Blogger, go to LAYOUT --> EDIT HTML, and in code section, find the following:
#main-wrapper {
width: 410px;
...so, in my case, it's 410 px. But you can't use all of it. Margins are also included. So, you can use about 390-400px.

2. Calculating. How many pics will fit.
Important thing to know is, when we place pictures in the table, we will make them smaller. But clicking on each, they will open in full size.

3. Upload pictures to:
- free web host service to get the URL address (Photobucket, Picasa, TinyPic...)
- or upload pics directly (through blogger), and get the code from there

4. Let's make a table. I'll make one with 1 Row (horizontal), and 3 Columns (vertical). And place my pics in it.
Here's the code for it:
....REPLACE the lines in orange, with your pics URL (from a free web host).
....in blue, change number 0 to 1,2,3,4.....if you want a border around the table
....adjust width accordingly to width of post area (120 + 120 + 120 = 360 px, it fits into 410 px)
....change the green text to whatever (you can see this when placing your mouse cursor on the pic)
....in purple, give your picture a name (for search engines)
....and here's the result:

...when you click on your pic, you'll see the full size of it...

► if you haven't deactivated it, the default blogger border will still appear around the pic (look at the arrow in the picture above) . If you want to remove it from certain pics, add some style (in orange) to the the existing line (in white):
...use the same rule for every picture...

► notice a lot of empty space between Title and Table. This happens because Blogger adds a
tag for each time you press the Enter key to start a new line. To reduce it, add the following code ABOVE the table:

...and this one UNDER the table:
So, these are the basics. It ain't so complicated, and there's a million options. You can use Tables for:
  • inserting pictures (make more rows, columns....)
  • placing text, making bullet lists
  • placing videos side by side
  • really, whatever you can think of....

-- add some headings to the pictures, make another row, and place it above (or under) the pictures. For my example, like this:
center">Name 1 center">Name 2 center">Name 3

pic name

pic name

pic name
...added row is in orange
...you can change the alignment into right, left (in green)

...if you'd like to change font color, size, family, add this code:
...change the styles to whatever suits you...

-- leave an empty cell by not placing nothing between:
-- fill the cell with text, instead of picture:
Some text goes here...
-- color the cell with some color:
Some text here...
-- add some space (padding) from borders:
-- create bullet list in the cell:
That's about it....Learn more visiting www.w3schools.com.CONCLUSION: This can look like a big deal, but really, it's not. When you do it once, you're ready. Save the code somewhere (Notepad, ....), just copy it, and paste when composing post. You can also create tables using any HTML editor (like Dreamweaver, for example). Just copy the code from it.... There's also a way of doing this through Windows Live Writer, if you're using it.
Title of the list
  • something
  • something else
  • nothing

0 التعليقات:

Total Pageviews