Skip to main content

Arranging Pictures In Your Posts, Side By Side

Having published Arranging Pictures In Your Posts, which hopefully explains several frequently asked questions
  • How do I get my pictures into the middle of the posts?
  • Why aren't my pictures clickable, to show the full size content?
  • Why do I always have to move the pictures from the top, into the text?
I find that there's a fourth question that gets asked.
How do I display pictures next to each other, not on separate lines?

With the latter question, I would typically answer by advising
Use nested tables.
That makes an effective workaround, although a clumsy one.

But it's possible to simply float pictures side by side, if they are small enough to fit into the space provided. That's not so hard to do, just make them small.

Here are two pictures, as I would normally set them up.








<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s1600-h/DSCF0048.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:320px; height:240px;" src="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s320/DSCF0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825377860724418" /></a>
<br clear=left />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s1600-h/DSCF0018.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:320px; height:240px;" src="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s320/DSCF0018.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825369165730978" /></a>
<br clear=left />


Besides the size problem - those pictures will not fit next to each other, given the space in most browser windows - there is another reason why you do not see them side by side.
<br clear=left />


So, make the pictures smaller, remove the break between the two pictures, and what do you get?





<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s1600-h/DSCF0048.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:160px; height:120px;" src="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s320/DSCF0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825377860724418" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s1600-h/DSCF0018.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:160px; height:120px;" src="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s320/DSCF0018.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825369165730978" /></a>
<br clear=left />


Or even smaller, if you want to put half a dozen pictures there.





<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s1600-h/DSCF0048.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s320/DSCF0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825377860724418" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s1600-h/DSCF0018.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s320/DSCF0018.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825369165730978" /></a>
<br clear=left />

This is a fluid template. If you make the browser window narrow, the post column will become narrow. See what happens if you make the post column too narrow to show both pictures side by side - grab the size of the browser window, and move it inward.

Also, watch out for the "display:block;" snippet. display:block; is part of the thumbnail code, and has the same effect as <br clear=left />.





<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s1600-h/DSCF0048.JPG" target="_blank"><img style="border-width:0px; display:block; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s320/DSCF0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825377860724418" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s1600-h/DSCF0018.JPG" target="_blank"><img style="border-width:0px; display:block; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s320/DSCF0018.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825369165730978" /></a>
<br clear=left />

You will need to change all instances of "display:block;", if you want a set of pictures to float, side by side.

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s1600-h/DSCF0048.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://4.bp.blogspot.com/_pzC_7PLtN-0/SqVtLtQ-psI/AAAAAAAACMI/QGLCaRhCPtA/s320/DSCF0048.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825377860724418" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s1600-h/DSCF0018.JPG" target="_blank"><img style="border-width:0px; float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand; width:80px; height:60px;" src="http://3.bp.blogspot.com/_pzC_7PLtN-0/SqVtLM37lKI/AAAAAAAACMA/db5mR8RGXw8/s320/DSCF0018.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5378825369165730978" /></a>
<br clear=left />

Comments

Floyd said…
Great post and good tutorial on arranging photo's in blogger.
Doobie said…
thank you thank you thank you!
TheBurmeseMom said…
Thanks. You've been a big help to me..a newbie.
Kay said…
what about youtube videos?
Chuck Croll said…
Kay,

If you make a YouTube video small enough, remove the "display=block", and if your browser does not require use of the "float" setting to display an embedded object side by side, then any video should display side by side. I'm not confident that it would be a consistent behaviour, for all browsers, though.

http://blogging.nitecruzr.net/2006/11/including-video-in-your-post.html

Popular posts from this blog

Custom Domain Migration - Managing The Traffic

Your blog depends upon traffic for its success.

Anything that affects the traffic to your blog, such as any change in the URL, affects the success of your blog. Publishing the blog to a custom domain, like renaming the blog, will affect traffic to your blog. The effects of the change will vary from blog to blog, because of the different traffic to every different blog.Followers. People who find your blog because of recommendations by other people.Search engines. Robotic processes which methodically surf your blog, and provide dynamic indexing to people who search for information.Subscribers. People who read your content from their newsfeed reader, such as the dashboard Reading List.Viewers. People who read your content from their browser.No two blogs are the same - and no two blogs will have the same combinations of traffic sources.

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.