Comments (1)
Hey! I would do something with max-height and vh
units, but the exact details would depend on your design. Tailwind includes max-h-screen
which could be helpful here, or you could add a custom value for something like max-h-90vh
or whatever makes sense for your project. That will make sure the video is never taller than 90% of the browser height.
Hope that helps!
from tailwindcss-aspect-ratio.
Related Issues (20)
- Flexbox issue HOT 4
- Needs h-0 class on the wrapping div regardless? HOT 3
- @apply issue HOT 3
- error An unexpected error occurred: "https://registry.yarnpkg.com/functional-purple-black-tree/-/functional-purple-black-tree-1.0.1.tgz: Request failed \"404 Not Found\"". HOT 1
- JIT mode HOT 4
- Is it time to deprecate this plugin for good? HOT 4
- production issue HOT 3
- Dependency issue with TW v3.0.0-alpha.1 HOT 2
- GatsbyImage specificity issue with Tailwind aspect-ratio HOT 2
- Add HOT 2
- Should this work with Tailwind 2.0 HOT 8
- Utilities not always getting compiled when using multiple config files HOT 5
- deprecated - In favor of integrations in core Tailwind 3.0 HOT 5
- Plugin generated wrong classes HOT 2
- An unexpected error occurred: "expected hoisted manifest for \"tailwindcss#color\"". HOT 2
- Using :after HOT 3
- wrap parent in flex dont show its child with aspect-ratio HOT 2
- Utilize `aspect-ratio` property with fallback HOT 1
- How to place two iframes next to each other w/ equal height. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-aspect-ratio.