Option to make HTML figure width relative to original (not actual) body-width
#11638
cod3licious
started this conversation in
Feature Requests
Replies: 1 comment 5 replies
-
You can define your own CSS rules with such criteria and add a class to your images to apply those rules for example. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
It would be great if there was an option to make the figure width in HTML documents relative to the original
body-width
instead of the actual currentbody-width
to show larger figures on smaller screens.Current behavior
-> On a large screen where the page can expand to its full default
body-width
(e.g., 800px), the image occupies 60% of this, i.e., its width is scaled down to 480px. That's great and the image has a reasonable size. ✅-> On a smaller screen, where the body is scaled down to, e.g., 480px, the image is again scaled down with it and is now only 288px wide, which makes it too small to read. 😞
Desired behavior
-> On large screens the behavior is the same.
-> On smaller screens, the image retains 60% of the original
body-width
(i.e., it is always 480px in this example) unless the screen is smaller than this, then it stays at 100% of the actual currentbody-width
, i.e.,This means the page would still be responsive, but the images try to keep a minimum size to make them more readable on smaller screens like phones.
Beta Was this translation helpful? Give feedback.
All reactions