- object-fit property is used.
- object-fit: fill | contain | cover | none.
- fill - Normal size. If require then stretch. (default).
- contain - Maintain aspect ratio.
- cover - Fill total area with aspect ratio.
- none - Not resized.
- scale-down - Smaller size while contain and none were specified.
- Can I use only height and width property?
- Width and height property only fit with container but object-fit resize with container.
No comments:
Post a Comment