The Markdown editor does not have a built-in way to add shadows to images. The workaround is to use the HTML <img> tag with the box-shadow CSS property inside the style attribute, which Document360 renders correctly.
These steps apply to the Markdown editor and to Markdown view in the unified Editor. The inline HTML renders the same way in both.
NOTE
The unified Editor is rolled out in phases and is currently available in projects created on or after November 23, 2026. Projects created earlier continue to use the Advanced WYSIWYG editor and the Markdown editor. We're working to make it available to all projects soon.
When to use image shadows
- Featured images or hero images: a subtle shadow lifts the image off the page and gives it visual weight, making it feel less flat against a white background.
- Screenshots with white or light backgrounds: without a shadow, a screenshot with a light background can bleed into the page. A shadow creates a visible boundary.
- Decorative or product images: shadows add depth and polish to images used for visual interest rather than technical instruction.
Use shadows sparingly. Applying them to every image in an article creates visual noise rather than emphasis.
In the Advanced WYSIWYG editor, use the Shadow style in the image menu instead. The unified Editor's image menu in Block view has no shadow option, so use this technique in Markdown view.
Understanding the box-shadow property
The box-shadow CSS property takes the following values in this order.
| Value | What it controls | Example |
|---|---|---|
| Horizontal offset | How far the shadow extends left (negative) or right (positive) | 3px |
| Vertical offset | How far the shadow extends up (negative) or down (positive) | 3px |
| Blur radius | How sharp or soft the shadow edge appears (higher is softer) | 3px |
| Color | The shadow color, as any CSS color name or hex code | gray |
Quick reference
Replace YOUR_IMAGE_URL, YOUR_ALT_TEXT, and the shadow values with your requirements.
<img src="YOUR_IMAGE_URL" alt="YOUR_ALT_TEXT" style="box-shadow: 3px 3px 3px gray;">
To customize the shadow, adjust the three pixel values and the color name:
<!-- Larger, softer shadow -->
<img src="YOUR_IMAGE_URL" alt="YOUR_ALT_TEXT" style="box-shadow: 5px 5px 10px #999999;">
<!-- No horizontal offset, tight shadow below only -->
<img src="YOUR_IMAGE_URL" alt="YOUR_ALT_TEXT" style="box-shadow: 0px 4px 4px gray;">
Gray is the most commonly used shadow color because it works against both light and dark backgrounds. You can replace gray with any valid CSS color name or hex code to match your design.
How to add a shadow to an image in Markdown
- Open the desired article in the Knowledge base portal. In the unified Editor, select Markdown view (</>) in the article header.
- Paste the snippet below at the location where you want the image to appear.
<img src="YOUR_IMAGE_URL" alt="YOUR_ALT_TEXT" style="box-shadow: 3px 3px 3px gray;">
- Replace
YOUR_IMAGE_URLwith the URL of your image. - Replace
YOUR_ALT_TEXTwith a short description of the image for accessibility. - Adjust the shadow values if needed. See the box-shadow reference table above.
Outcome
Without shadow

With shadow
