5-24-25
object-fit: contain; need to specify img or
video dimensions to work. The image will be cropped to fit into
the defined dimensions of the container while maintaining
its aspect ratio.
article link
|
object-fit: contain; |
flex-flow
flex
flex-grow
defines the ability for a flex item to grow if necessary
by dictating what amount of the space inside the flex
container the item should take up. if
|
flexbox |
.outer{
position: relative;
}
.inner {
position: absolute;
}
To position an absolute element that respects the borders of
its parent element so that it isn't just floating around
randomly, the parent element must have
|
absolute positioning |
|
customizing washis from figma |