# Side-by-Side Images

**URL:** <https://forum.obsidian.md/t/side-by-side-images/9210>\
**Category:** Feature requests\
**Created:** [November 29, 2020, 2:07am UTC](https://forum.obsidian.md/t/side-by-side-images/9210 "2020-11-29T02:07:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 29, 2020, 2:07am UTC](https://forum.obsidian.md/t/side-by-side-images/9210/1 "2020-11-29T02:07:32Z")

</div>

### Side-by-Side Images

I’m trying to see images across the page for spatial simplicity and function; I like to make mood boards and use images/graphics to illustrate concepts.

### Proposed solution

I wish I knew programming, which if I did, I may see this as what it is - impossible in markup files but I _hope_ it’s not.

### Current workaround

All I’m doing now is making the pixel size around [|200] and stacking them.

* * *

I didn’t find any requests like this. Thank you for considering.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [November 29, 2020, 3:25am UTC](https://forum.obsidian.md/t/side-by-side-images/9210/2 "2020-11-29T03:25:27Z")

</div>

I like this idea, I definetly see the value in making more out of images in these type of layouts.

Would spliting the screen in various vertical and horizontal splits work?

I’ll play around with this idea, would love to see if anyone else has solutions, or plugin ideas for this

---

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [November 29, 2020, 2:03pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/3 "2020-11-29T14:03:55Z")

</div>

Might a table work?

Else, I imagine there’s an inline HTML solution to this. Hmm…

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 29, 2020, 2:56pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/4 "2020-11-29T14:56:13Z")

</div>

> [@ryanjamurphy](#):
>
> Might a table work?

Thanks for getting back Ryan. I’m new to Obsidian so haven’t played with tables yet but I’ll give it a shot later as I keep going through the help vault.

I don’t program - whats does an inline HTML solution consist of?

> [@santi](#):
>
> Would spliting the screen in various vertical and horizontal splits work?

I don’t think it would achieve the functionality I’m looking for.

---

<div class="post-metadata">

**Author:** ![Janek](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/2acd7d/32.png) [@Janek](https://forum.obsidian.md/u/Janek)\
**Post date:** [November 29, 2020, 3:36pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/5 "2020-11-29T15:36:52Z")

</div>

A table only works if you don’t specify the image size, since it reads the " | " as a cell division. It’s a solution but not a great one…

---

<div class="post-metadata">

**Author:** ![GeekB](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/9de053/32.png) [@GeekB](https://forum.obsidian.md/u/GeekB)\
**Post date:** [November 29, 2020, 7:15pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/6 "2020-11-29T19:15:12Z")

</div>

I had a similar need and managed to make it work with tables :

2x1 grid with web images :

```
|<img src="http://lorempixel.com/200/200/" width="200" />|<img src="http://lorempixel.com/200/200/" width="200" />|
|-|-

```

2x1 grid with attachments:

```
|![[myfilename.png\|200]]|![[myfilename.png\|200]]|
|-|-

```

3x4 grid with attachments :

```
|![[myfilename.png\|200]]|![[myfilename.png\|200]]|![[myfilename.png\|200]]|
|-|-|-
|![[myfilename.png\|200]]|![[myfilename.png\|200]]|![[myfilename.png\|200]]|
|![[myfilename.png\|200]]|![[myfilename.png\|200]]|![[myfilename.png\|200]]|
|![[myfilename.png\|200]]|![[myfilename.png\|200]]|![[myfilename.png\|200]]|
```

---

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [November 29, 2020, 7:48pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/7 "2020-11-29T19:48:20Z")

</div>

@Janek You can use `\` to escape the `|` for image size, so you can use sizes in tables! As per @GeekB’s example.

@joshuawilliam, inline HTML and added CSS is a little tricky and requires some convoluted workarounds (e.g., you need to write a few different HTML statements to make it work, and I _think_ your images need to be hosted on the web). Try the table solution first!

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 29, 2020, 9:22pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/8 "2020-11-29T21:22:54Z")

</div>

> [@ryanjamurphy](#):
>
> Try the table solution first!

@GeekB - just what I was looking for, this is great. Thank you.

Thanks for your correspondence, Ryan.

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 29, 2020, 9:23pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/9 "2020-11-29T21:23:33Z")

</div>

Check out @GeekB’s solution. It’s perfect I think.

---

<div class="post-metadata">

**Author:** ![Jeffurry](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jeffurry/32/207_2.png) [@Jeffurry](https://forum.obsidian.md/u/Jeffurry)\
**Post date:** [November 29, 2020, 10:36pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/10 "2020-11-29T22:36:25Z")

</div>

You could try this (nb it needs some text before it: a full-stop suffices, as per this eg)

`.<div style="float: left; padding: 0px 2px 0px 0px;">![[Pasted image 1.png|100]] </div><div style="float: left; padding: 0px 2px 0px 0px;">![[Pasted image 2.png|100]] </div><div style="float: left; padding: 0px 2px 0px 0px;">![[Pasted image 3.png|100]] </div><div style="float: left; padding: 0px 2px 0px 0px;">![[Pasted image 4.png|100]] </div>`

Getting out of it is a bit tricky though. You need to add text after this code till you have passed it - a full-stop on successive lines will do it with minimal aesthetic impact.

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 29, 2020, 11:46pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/11 "2020-11-29T23:46:19Z")

</div>

> [@Jeffurry](#):
>
> You could try this

oh wow, an even better solution - even the padding can be manipulated in 4 directions. Thank you very much @Jeffurry.

How far can this go? You’ve done four inputs here, all with a left padding.

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [November 30, 2020, 12:10am UTC](https://forum.obsidian.md/t/side-by-side-images/9210/12 "2020-11-30T00:10:26Z")

</div>

How do I amend the spaces so the alignment is better between the bottom two? I also see the weapon lands to the right rather to the left or center, is this amendable?

 ![Screen Shot 2020-11-30 at 00.07.57](https://forum.obsidian.md/uploads/default/original/2X/d/d40b2663f79dedec20e6b38e15c61fb6edc4954e.jpeg)

This is the code for what you see based on your above response.

`Where are we going? <div style="float: left; padding: 2px 2px 2px 2px;">![[futurecity.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[dystopianfuturecity.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[spacecraft.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[crafttwo.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[interior.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[weapon.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[ground.png|200]] </div><div style="float: left; padding: 2px 2px 2px 2px;">![[controlcenter.png|200]] </div>`

Thank you @Jeffurry

---

<div class="post-metadata">

**Author:** ![Jeffurry](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jeffurry/32/207_2.png) [@Jeffurry](https://forum.obsidian.md/u/Jeffurry)\
**Post date:** [November 30, 2020, 1:40pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/13 "2020-11-30T13:40:47Z")

</div>

OK, full disclosure…I don’t really know what I am doing! BUT, I have jiggled around a bit and got this…

 ![Screenshot 2020-11-30 133659](https://forum.obsidian.md/uploads/default/original/2X/1/1413e42f1dfd2d78a8c9b37118c519fa8e70cc8e.png)  
… the placement of a carriage-return and some full-stops helps to organise the display of the images. Muck about with it, with a preview window open next to your editor to get the desired effect. Sorry I cant be more expertly helpful.

```
Where are we going? <div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div>

..<div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div><div style="float: left; padding: 2px 2px 2px 2px;">![0](https://www.placecage.com/140/100) </div>
```

---

<div class="post-metadata">

**Author:** ![Ward](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ward/32/7102_2.png) [@Ward](https://forum.obsidian.md/u/Ward)\
**Post date:** [November 30, 2020, 7:06pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/14 "2020-11-30T19:06:10Z")

</div>

Hi. I have tested your coded with local files and you have to add line breakes \<br/\> with large pictures but for the rest it works perfect. This is AWESOME 👏 👏 👏

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [December 1, 2020, 12:59am UTC](https://forum.obsidian.md/t/side-by-side-images/9210/15 "2020-12-01T00:59:46Z")

</div>

Fantastic; that’s awesome - thank you @Jeffurry

> [@Ward](#):
>
> you have to add line breakes   
> with large pictures but for the rest it works perfect.

@Ward - may you please post in some of your amended code? I know nothing about programming so any import visual would help a ton to see what you mean.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [December 1, 2020, 4:56pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/16 "2020-12-01T16:56:29Z")

</div>

> [@joshuawilliam](#):
>
> How do I amend the spaces so the alignment is better between the bottom two? I also see the weapon lands to the right rather to the left or center, is this amendable?

Hey @joshuawilliam I couldn’t exactly replicate your images setup, since I don’t have the exact images you are using. _(feel free to upload them here, if you want me to test it with your exact same setup)_

With that said I used your same code with other images just to test.

## My test

this is what mine looks like (exact same code, different images)

Look at the first image (top left) it’s taking too much space at the bottom

 ![image](https://forum.obsidian.md/uploads/default/original/2X/a/af8775ddee047fd7dd7559b39ccdde6b48eaf7ed.jpeg)

By following @Ward 's recommendation to use `<br>` I manage to correct into this (look at first photo again)

 ![image](https://forum.obsidian.md/uploads/default/original/2X/a/a3d36cfe4d6c548af6ec3025d90c95924c9a288f.jpeg)

Now there’s some space in between the first photo and the next row

`<br>` means break, it’s the same as doing `enter` or ` return` when writing, it creates a new line of text, in this case code.

Here’s more info on [the `<br>` tag in HTML](https://www.w3schools.com/TAGS/tag_br.asp)

In my case this is all I changed

I added `<br>` after `</div>` and before `<div style=`

# What does `<br>` mean?

so the first image’s code looks like this now

```auto
Where are we going? <div style="float: left; padding: 2px 2px 2px 2px;">![[futurecity.png|200]] </div><br><div style="float: left; padding: 2px 2px 2px 2px;">![[dystopianfuturecity.png|200]] </div>

```

that way you can try to add `<br>` in between `</div><div style=` to fix those strange gaps.

it’s not perfect and you might find making some `<br>` makes some other gaps move around.

## Feel free to upload your images

It’s a bit tricky to be precise, using the wrong images, so if you’d like some more help with the exact code, feel free to upload your images and I can set it up for you and explain how to best format them.

Easiest way is to put them in a folder and do a .zip to quickly just upload it here in the forum, a Dropbox link (or any other could service) also works

Hope it help!

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [December 1, 2020, 9:26pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/17 "2020-12-01T21:26:09Z")

</div>

I found a really clean way to do it with tables it looks like this:

 ![screen-images](https://forum.obsidian.md/uploads/default/original/2X/d/d510c2c10257761d30d23bc2ab37f30917c70069.jpeg)

## The solution

I used css snippets and the new `cssclass` to hide the lines made by tables. _(This doesn’t affect normal tables, which is great)_

that way I simply create it like this:

## A simple table

```auto
| | | | 
| ------------------------ | -------------------- | --------------------- |
| ![[glass-circle-1.jpg]] | ![[hover.png]] | ![[violet-city.png]] |
| ![[purple-city.jpg]] | ![[boat-sky.jpg]] | ![[stone-planet.jpg]] |
| ![[blurry-window-1.jpg]] | ![[red-shape-1.jpg]] | ![[train-sunset.jpg]] |

```

## I made a tutorial

I made a video tutorial, It needs Obsidian version 0.9.18 or higher, which is still for “insiders” only [Catalyst early updates](https://obsidian.md/pricing)

I would assume 0.9.18 should be available for everyone in 1 week or 2 hopefully. Then I’ll make the video public.

_(right not it’s an unlisted video on YouTube, for anyone who wants to check it out before it’s published.)_

[![](https://img.youtube.com/vi/exbHSSbydKw/maxresdefault.jpg "Create an Image Gallery In Obsidian") ](https://www.youtube.com/watch?v=exbHSSbydKw)

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [December 1, 2020, 11:33pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/18 "2020-12-01T23:33:57Z")

</div>

Radical dude, nice work on the tutorial - your second latest reply here is the one to pay attention to. Once I get access to the new version, I’ll get on your method, it seems like the best one yet. Thank you very much.

---

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [December 1, 2020, 11:38pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/19 "2020-12-01T23:38:26Z")

</div>

my pleasure man, sounds good! Once 0.9.18 is public, feel free to let me know if you have any questions or issues.

Thanks for sparking the idea, I’m already making use of this method all around my notes, I even have some crazy ideas to expand it’s functionality.

---

<div class="post-metadata">

**Author:** ![joshuawilliam](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joshuawilliam/32/7059_2.png) [@joshuawilliam](https://forum.obsidian.md/u/joshuawilliam)\
**Post date:** [December 1, 2020, 11:40pm UTC](https://forum.obsidian.md/t/side-by-side-images/9210/20 "2020-12-01T23:40:35Z")

</div>

> [@santi](#):
>
> feel free to let me know if you have any questions or issues.

Thank you so much.

> [@santi](#):
>
> Thanks for sparking the idea, I’m already making use of this method all around my notes, I even have some crazy ideas to expand it’s functionality.

Fantastic, Santi. I hope it’s your idea to post those developments  
_in here_ [relative to this] as and when they occur. 🙂

[Next page](https://forum.obsidian.md/t/side-by-side-images/9210.md?page=2)
