crop image css
.img {
object-fit: contain;
}.img {
object-fit: cover;
object-position: 100% 0; //move image position in x direction.
object-position: 0 100%; //move image position in y direction.
}
Also in CSS:
- how to use sass
- css div vertical center
- css :focus
- how to trim leading spaces in html using css
- css translate3d
- css grid mdn
- css transparent background color
- how to link locally installed fonts to css
- ie11 flex 1
- html link to css in another folder
- span nowrap
- align ionic icons and text css
- css onclick change color
- full page background image
- how to change font in css
- inline css
- how to set favicon
- html5 snippet
- css inherit class
- css click event jquery
- custom scroll bar
- how to remove gap between divs
- font height css
- how to center in absolute position