-
Notifications
You must be signed in to change notification settings - Fork 36
Flexbox issue #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I had same problem |
i had the same problem too, but mine fixed by adding 2 width in parent so I have come to a conclusion that
|
Yeah things like this often behave weirdly as direct children of flex containers, just a CSS thing. Glad you figured out a solution! |
For more details you can see this post |
Does it work inside of flexbox? I couldn't be successful with this code:
<div className='flex h-screen bg-purple-900 items-center flex-col justify-center w-screen'> <div className='aspect-w-16 aspect-h-9'> <img src='https://picsum.photos/id/237/500/500' className='object-cover object-center' alt='' /> </div> </div>
The text was updated successfully, but these errors were encountered: