Tricks with image classes
If you are just starting out with Kirby, please first check out what is possible with Kirbytext image tag https://getkirby.com/docs/reference/text/kirbytags/image.
Image width
You can use inbuilt width classes to contain image width. See available classes https://www.one.thezero.club/guide/theme-styling/helpful-classes#width.
Examples:
Image align
Also, a very useful class is the align class, see available here https://www.one.thezero.club/guide/theme-styling/helpful-classes#align.
They are best used when combined with image width classes.
Example when you want to contain image width to half of the parent container width and align it right:
Example when you want to add an icon or smaller image and align it center:
Margin
Your design often needs some control over margin space, and that is when margin classes comes handy https://www.one.thezero.club/guide/theme-styling/helpful-classes#margin.
The same classes you can add to the Editor image class option.
Remove the left or right margin
You can make a negative margin (of -40px) to image with the following classes:
Last updated