width: fit-content; breaking with a child having aspect ratio; behaves as if the other child didn't exist
It’s a bit difficult to explain, but I’ll give it a try, sorry if it’s not clear: Basically, I’m trying to create a container (display: flex; flex-direction: column; width: fit-content; height: 100%;) that holds two elements: The first element is a 3x5 grid made up of squares, so height: 100%; aspect-ratio: 3 / 5; The second element has height: 20px; width:100%;. I’ve tried various approaches, but there have always been different kinds of errors. This is the attempt that came closest: #startMenu { height: 400px; width: fit-content; position: absolute; z-index: 3; bottom: 33px; left: 0; padding
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.