Minimum aspect ratio in CSS

The padding-bottom aspect ratio trick has been around for a while, and until we get the official unit, it’s all we’ve got to create fluid-sized elements. At Daisie, I remember needing a ‘minimum aspect ratio’ but never properly …


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford

The padding-bottom aspect ratio trick has been around for a while, and until we get the official unit, it’s all we’ve got to create fluid-sized elements. At Daisie, I remember needing a ‘minimum aspect ratio’ but never properly implemented it. Today, when working on some cards, that requirement came up again. The aim is to have a container at a minimum aspect ratio, but if the content within exceeds it, we allow it to grow.


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford


Print Share Comment Cite Upload Translate Updates
APA

Welcome to my blog on Trys Mudford | Sciencx (2019-09-20T00:00:00+00:00) Minimum aspect ratio in CSS. Retrieved from https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/

MLA
" » Minimum aspect ratio in CSS." Welcome to my blog on Trys Mudford | Sciencx - Friday September 20, 2019, https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/
HARVARD
Welcome to my blog on Trys Mudford | Sciencx Friday September 20, 2019 » Minimum aspect ratio in CSS., viewed ,<https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/>
VANCOUVER
Welcome to my blog on Trys Mudford | Sciencx - » Minimum aspect ratio in CSS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/
CHICAGO
" » Minimum aspect ratio in CSS." Welcome to my blog on Trys Mudford | Sciencx - Accessed . https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/
IEEE
" » Minimum aspect ratio in CSS." Welcome to my blog on Trys Mudford | Sciencx [Online]. Available: https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/. [Accessed: ]
rf:citation
» Minimum aspect ratio in CSS | Welcome to my blog on Trys Mudford | Sciencx | https://www.scien.cx/2019/09/20/minimum-aspect-ratio-in-css/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.