# Setting Zoom at startup

**URL:** <https://forum.obsidian.md/t/setting-zoom-at-startup/105655>\
**Category:** Workflows & Templates\
**Tags:** ui-ux\
**Created:** [September 14, 2025, 2:57pm UTC](https://forum.obsidian.md/t/setting-zoom-at-startup/105655 "2025-09-14T14:57:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Giles](https://forum.obsidian.md/user_avatar/forum.obsidian.md/giles/32/68398_2.png) [@Giles](https://forum.obsidian.md/u/Giles)\
**Post date:** [September 14, 2025, 5:58pm UTC](https://forum.obsidian.md/t/setting-zoom-at-startup/105655/2 "2025-09-14T17:58:41Z")

</div>

# More Detailed Notes on Zoom Issue

## How To

- Create the file ~/PATH\_TO\_VAULT/.obsidian/snippets/zoom.css.
- make it look like this:
- 

````css
  :root { --custom_zoom: 120%;}
  div.prompt { zoom: var(--custom_zoom); }
  div.menu-scroll { zoom: var(--custom_zoom); }
  div.modal { zoom: var(--custom_zoom); }
  div.horizontal-main-container { zoom: var(--custom_zoom); }
    ```

````

Go to Settings-\>Appearance and enable your new CSS file:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/c/1/c13ca9fc00147a320e80181953964b14fc3357db.png)

Now changes to `--custom_zoom` immediately affect your running obsidian instance and are persisted between restarts.

## How I worked this out

- started with [this post](https://forum.obsidian.md/t/setting-zoom-at-startup/105655) which recommends setting zoom level for the whole of obsidian like this
  - 

```css
body { zoom: 120% }

```

- but realised that zooming the whole page caused the editor `...` menu to pop up further to the right for each level of zoom and quickly disappear outside of the window frame
- So Hit Ctrl-Shift-I to bring up debug mode and then move the mouse around the Elements pane to work out which classes we want to zoom. I found the following:
  - div.menu-scroll:- the drop down menus, but NOT their frame div.menu _this is the critical change as zooming div.menu causes the shift-right problem_
  - div.prompt:- the command palette
  - div.modal:- modal dialogues except command palette
  - div.horizontal-main-container:- the main page, all panes

- NOTE: this may not be a comprehensive list so if you find anything else that needs zooming then apply the steps above again

# Useful References

After doing the above I found this which walks through how to find UI elements

> [@Obsidian CSS Inspector Workflow](https://forum.obsidian.md/t/obsidian-css-inspector-workflow/58178):
>
> Obsidian CSS Inspector Workflow This was originally called “Obsidian CSS Quick Guide” but it ended up being more focused on the inspector. As a retrospective change to help people use this as a resource, it has been renamed. – FireIsGood Hi friends! CSS in Obsidian can be confusing to get into, so this is a guide to get you started with information on the tools, methods, and some background knowledge! Let’s get started by looking at how you can look behind the curtain of Obsidian’s visuals. …

---

_[View the full topic](https://forum.obsidian.md/t/setting-zoom-at-startup/105655)._
