# Is it possible to set image size in mobile to fix the screen length?

**URL:** <https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424>\
**Category:** Basement\
**Created:** [October 31, 2021, 7:27am UTC](https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424 "2021-10-31T07:27:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvd](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pvd](https://forum.obsidian.md/u/pvd)\
**Post date:** [October 31, 2021, 7:27am UTC](https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424/1 "2021-10-31T07:27:24Z")

</div>

### Things I have tried

I’ve searched and read related topic on this one:

> [@Set image maximum size](https://forum.obsidian.md/t/set-image-maximum-size/9549):
>
> It would be nice if we could set a maximum size in pixels the way we can set the specific image size. I find that if I have large images in a note and only one pane open, they often take up the entire screen (hiding most of the other content). If I set the image size to 400 for example, that helps. But when I then open several panes, and the panes become small, the image usually gets cut off (because it’s no longer dynamically sized based on the pane size). Being able to set the maximum size wo…

### What I’m trying to do

In my case, “|500” works good for me in my macOS. However, when I read the docs in iPhone, the image would kinda break the layout.

One feature that I missed [Quiver](https://happenapps.com/) is the notes in iOS would constrain the length of image the the width of the screen a most.

---

<div class="post-metadata">

**Author:** ![JayKim](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jaykim/32/21082_2.png) [@JayKim](https://forum.obsidian.md/u/JayKim)\
**Post date:** [October 31, 2021, 7:52am UTC](https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424/2 "2021-10-31T07:52:10Z")

</div>

Will this css snippet fix your issue?

```auto
.markdown-preview-view img { 
  max-width: 100%;
}

```

(I agree these kind of things should be handled by obsidian as a standard)

---

<div class="post-metadata">

**Author:** ![pvd](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pvd](https://forum.obsidian.md/u/pvd)\
**Post date:** [October 31, 2021, 8:01am UTC](https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424/3 "2021-10-31T08:01:06Z")

</div>

Awesome thanks,

```auto
 $ pwd
~/Library/Mobile Documents/iCloud~md~obsidian/Documents/zen/.obsidian/snippets/

$ cat img_preview.css
.markdown-preview-view img {
  max-width: 100%;
}

```

I’ll wait icloud sync this file and take a look at it

Up: It works!

 ![image](https://forum.obsidian.md/uploads/default/original/3X/8/a/8aec082ccae43c26f925ad378a0cd4ee92ceea5c.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [November 1, 2021, 8:01am UTC](https://forum.obsidian.md/t/is-it-possible-to-set-image-size-in-mobile-to-fix-the-screen-length/26424/4 "2021-11-01T08:01:54Z")

</div>

Closed on November 1, 2021, 8:01am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
