# How to set height of image

**URL:** <https://forum.obsidian.md/t/how-to-set-height-of-image/90716>\
**Category:** Help\
**Created:** [October 30, 2024, 12:42pm UTC](https://forum.obsidian.md/t/how-to-set-height-of-image/90716 "2024-10-30T12:42:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anon45210282](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@anon45210282](https://forum.obsidian.md/u/anon45210282)\
**Post date:** [October 30, 2024, 2:51pm UTC](https://forum.obsidian.md/t/how-to-set-height-of-image/90716/5 "2024-10-30T14:51:25Z")

</div>

Can the CSS in the link below be modified for your needs, or too restrictive?

> [@Set default size for images](https://forum.obsidian.md/t/set-default-size-for-images/68377/2):
>
> You can set default image sizes through CSS snippets. Go to Settings → Appearance, and then at the bottom of the pane is “CSS snippets”. You can click the folder to the right to open it, and put a text file there (mine is named “defaultimagesize.css”). The code in mine is this: /\* === Images size defaults === \*/ .image-embed.image-embed img:not([width]) { max-height: 250px; max-width: 300px; } You can adjust the values as you’d like from there. Then go back to the CSS snippets section…

---

_[View the full topic](https://forum.obsidian.md/t/how-to-set-height-of-image/90716)._
