Normalize the scales of max width and max height with their width and height counterparts
See original GitHub issueDiscussed in https://github.com/tailwindlabs/tailwindcss/discussions/4937
<div type='discussions-op-text'>Originally posted by Soviut July 9, 2021 With the advent of JIT mode, it is no longer necessary to save space by having different scales for max width/max height and width/height.
Ideally, I should be able to take any width w-1/2
and add the max-
prefix to it without having to consult the documentation.
This could also mean giving sm
, md
, lg
, xl
, 2xl
, etc. lengths that max-width has to width (and height).</div>
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How can I use next-image to scale images down to "max-width ...
For wide and short images, the padding maintains the aspect ratio of the image, making its height proportional to its width.
Read more >max-width - CSS: Cascading Style Sheets - MDN Web Docs
The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger...
Read more >seaborn.histplot — seaborn 0.12.1 documentation - PyData |
Scale the width of each bar relative to the binwidth by this factor. Only relevant with univariate data. kdebool. If True, compute a...
Read more >Twitter Bootstrap CSS Overview Tutorial - w3resource
initial-scale=1.0.0 ensures that when loaded, your web page will be ... .img-responsive { display: inline-block; height: auto; max-width: ...
Read more >TextView - Android Developers
android:scrollbarSize, Sets the width of vertical scrollbars and height of ... The TextView scales text size both horizontally and vertically to fit within ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey folks! Going to close this in favor of discussing it in the PR since this is more of a feature request than a bug 👍
I am currently updating our project to Tailwind 3.0 and I have stumbled over this. Great to see this is being addressed already! Thanks for the effort.