DNNCommunity / DNNCommunity/DNN.Media

Make images responsive

Open
#22 0 comments 1 reaction 1 assignee Claimed by @WillStrohl View on GitHub
enhancement
Dominant language
C#
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## What version are you using right now?
- DNN: 9.x.x
- Media Module: 05.00.00

## Is your feature request related to a problem?
When putting an image, although a width and height can be specified, the image is not responsive

## Describe the solution you'd like
When the media is an image, there could be a checkbox in the image settings saying "Make image responsive", it should be ticked by default. When that is ticked the code should not use width and height and add the following style="max-width:100%;height:auto;" so that the image can never get larger than the ContentPane.

## Additional context
Got this idea from Nina Meiers video at https://www.youtube.com/watch?v=UhWWRZNQwuQ&feature=youtu.be

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.