I would like to use dataform embedded to show a random responsive image on the home page of my Moodle site.
By responsive, I mean an image whose height and width adapt automatically to the size of the browser screen (with the ratio height/width constant).
Although I it is quite easy to adapt automatically the width, I don't see how I can change the height accordingly.
By using something like [ [ Image:tn ] ] one can get a small image.
Is it possible to get a responsive image?
Thank you for any help provided