Style images in your help center

Control how images display in your articles by adding a short directive to any image in Notion.

2 min read

Want a screenshot to appear smaller on the side, or a diagram to stretch across the full width? You can control exactly how images display in your articles, size, alignment, and even visual polish like shadows.


Add a directive to your image caption

Open the image in Notion and write a directive directly in the caption field. Any text you add before or after it becomes the visible caption, the directive itself is hidden from your readers.

<ndx: width="small" align="center" /> A small, centered screenshot


Set the width

The easiest way to control width is with a preset: small, medium, large, or full.

ValueExample
small<ndx: width=small />
medium<ndx: width=medium />
large<ndx: width=large />
full<ndx: width=full />

Set the alignment

Once you've set a width, you'll probably want to position the image too. Use align to place it left, center, or right within the article column.

ValueExample
left<ndx: align=left />
center<ndx: align=center />
right<ndx: align=right />
Alignment works best when combined with a width. A full-width image centered looks the same as full-width left, there's no room to move.

Add a finishing touch with visual effects

Two optional flags help your images look a little more refined. shadow adds a soft drop shadow around the image, and rounded gives it rounded corners. Both are subtle but make a real difference, especially for screenshots.

FlagEffect
shadowSoft drop shadow around the image
roundedRounded corners

Just write the flag name to enable it:

<ndx: shadow rounded />

Or be explicit if you want to turn one off:

<ndx: shadow=true rounded=false />

Here's what shadow and rounded corners look like together:

Image caption: <ndx: width=medium align=center shadow rounded />


Combine everything in one directive

You don't need separate directives for each option, put them all together in one. Order doesn't matter.

<ndx: width=medium align=center shadow rounded />

Did this answer your question?