.img {
margin-right: -15px; // Remove right gap
margin-left: -15px; // Remove left gap
padding-bottom: 62.5%; // ratio is 16:10
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
}
Code Example |
---|
Css :: add css class c# |
Css :: border-radius order |
Css :: svg tailwind |
Css :: css cursor |
Css :: how we use backdrop-filter css property |
Css :: css nested scrollbars |
Css :: 3d rotating text css |
Css :: beautiful checkbox css |
Css :: freeze input text css |
Css :: the box model |
Css :: transparent circle in a div |
Css :: how to add bold in css |
Css :: how to boosts your rendering performance |
Css :: https://www.youtube.com/s/desktop/f357c206/cssbin/www-main-desktop-watch-page-skeleton.css |
Css :: fitler css for making white img |
Css :: fit image in grid css |
Css :: scroll animation css |
Css :: css aufzählungszeichen entfernen |
Css :: display inline not alligned |
Css :: text-overflow ellipsis css |
Css :: combine text styles |
Css :: inherit styles |
Css :: codebuddysurej |
Css :: mvc dynamic css |
Css :: css selector data-entity-type |
Css :: alinhar ao centro align item css |
Css :: acrilic css 1 |
Css :: ancho maximo css |
Css :: css code for increasing size |
Css :: css borrar |