Howe to make (image: ) responsive?

I have noticed that my (images:) are not responsive. Any idea how I can fix that?

Thanks.

Just style your image in your CSS

img {
  max-width:100%;
  height: auto;
  display:block;
}

yep, but that would fix all my images. I was wondering how to add a class to the β€œ(image: )” that I add in textarea using Kirbytext.

Oh, I see, you can add a class attribute to the image tag:

(image: image.png class: responsive-image)
1 Like

great, itΒ΄s working :). thanks

or just :

.post img {
  max-width:100%;
  height: auto;
  display:block;
}

to select the images in your β€˜post’…

2 Likes