Envira Gallery Blog
Digital Photography Tips, Tutorials and Resources
Digital Photography Tips, Tutorials and Resources
Last updated on Apr 12, 2016 by Waseem Abbas Reader Disclosure
Do you want to show your WordPress images side by side? Sometimes you may want to align your photos in a row on your website. In this article, we will show you how to display WordPress images next to each other.
There are several different ways to display images side by side in WordPress. Lets take a look at three simple methods…
First, add your photos to your WordPress post or page. Just click on the Add Media button from the upper left corner of the editor to select the images you want to insert.
Once you’ve selected your images, click on the Insert into post button.
Now click on each image and select Align left to align the images next to each other (you need to be in the Visual tab to do this).
Alternatively, you can select “Left” from the Alignment option (under “Attachment Display Settings”) inside the Insert Media screen before you click on the Insert into post button.
Now your images will automatically display side by side. Here is the result:
There is one downside to this method. If you have text on the same page as your images, it will fill any empty area to the right of the images:
By adding your own custom CSS code to your images, you can have complete control over exactly how they are displayed on your website.
First, make sure you are editing your page or post in Text mode (not Visual mode).
In the <img> tag for your images, add the following code:
style= "float: left; margin-right: 15px;"
This will make your images align next to each other with a space of 15px to the right of each image. You’ll need to add this code to all the images that you want to display next to each other, as shown below:
Here’s how it looks:
If you want to prevent text from displaying to the right of the images, use this code instead:
style= "display: inline-block; margin-right: 15px;"
Now, your text will not wrap around your images. Instead, it will look like this:
The only downside to this method is that it requires adding code manually, which can be a bit confusing and time consuming.
Envira Gallery is the easiest method to display your images side by side in WordPress. It even automatically makes larger photos into smaller thumbnails so that all your images look perfect when displayed next to each other.
To start, you’ll need to install and activate the Envira Gallery plugin.
Then, simply go to Envira Gallery » Add New to add a new image gallery in WordPress.
Simply add a name for your image gallery, and add the photos you want into the Images section under Envira Gallery Settings.
Make sure to hit the Publish button to save your changes.
Now you will see a dialog box with the shortcodes and some other information. Just copy and paste one of these shortcodes into the page or post where you want to show your images side by side.
(For a detailed tutorial, check out how to create an image gallery with thumbnails in WordPress.)
That’s it! Here’s an example of how your images will appear on your website:
You can use Envira to display images of varying heights next to each other as well. For our tutorial on that, check out how to create a masonry image gallery in WordPress.
We hope this article has helped you to learn how to display WordPress images next to each other. You may also want to check out our guide on how to create an image slider for your WordPress galleries.
If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.
Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.
I’ve been searching high and low for how to do this and this article has been the most helpful. However, does this not work for sites/blogs using photos with captions? I have linked my photos and captions to portfolio pieces on my website, and it’s not allowing me to align side-by-side.
-Brittany
Hey Brittany, did you check this guide? How to Add Caption Below Images in WordPress. Please let us know if this helps or feel free to reach out for any other support you need. 🙂
I have spent the last hour trying to put my photos side by side – these instructions helped, thank you so much!
Hey Sapphire, we are glad it helped you out. Do follow us on Twitter for more exciting WordPress tutorials. 🙂
This saved me a lot of timetime. Thanks