# Scale images in documentation rendered by Documenter.jl (maybe CSS question)

**URL:** <https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525>\
**Category:** Tooling\
**Tags:** question, documenter\
**Created:** [October 21, 2024, 10:28am UTC](https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525 "2024-10-21T10:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 21, 2024, 10:28am UTC](https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525/1 "2024-10-21T10:28:49Z")

</div>

I have a bunch of images in the documentation of a package. These images are generated on the fly by the `docs/make.jl` as last values of `@example` blocks, and are rendered as SVG by a `Base.show(out_io::IO, ::MIME"image/svg+xml", ...)` method.

Is there a way I can scale these images, eg to 200% of their original size? I suspect that this can by done in CSS, and I should be looking at the `article img` selector, but what property to add.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 21, 2024, 11:33am UTC](https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525/2 "2024-10-21T11:33:32Z")

</div>

I found the [`zoom`](https://developer.mozilla.org/en-US/docs/Web/CSS/zoom) CSS property, which works fine, but it is fairly recent. Still, the worst that can happen is that images remain the original size.

[`scale(...)`](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale) is much older and widely supported, but then the image will “pop” from the container, which is not resized accordingly.
