Search
 
SCRIPT & CODE EXAMPLE
 

CSS

crop img css

    .crop {
        width: 200px;
        height: 150px;
        overflow: hidden;
    }
Comment

how to crop images in css

img{
	object-fit: cover;
}
Comment

css crop image

.imgContainerDiv {
  overflow: hidden;
}
Comment

PREVIOUS NEXT
Code Example
Css :: align div bottom of parent 
Css :: css align text 
Css :: sass loops 
Css :: no scrollbar tailwind 
Css :: css prevent grid blowout 
Css :: responsive font-size 
Css :: center image 
Css :: grid blocks center 
Css :: style highlight css 
Css :: positioning button inside div 
Css :: webpack/load/css 
Css :: scroll bar with 0 width 
Css :: background-repeat 
Css :: best box shadow 
Css :: select first div css 
Css :: rgb green 
Css :: add shadow to background image css 
Css :: svg stroke color 
Css :: custom scrollbar css 
Css :: vertical padding css 
Css :: Disable text selection/highlight 
Css :: bootstrap media query 
Css :: importing scss into vue component 
Css :: css list items next to each other 
Css :: transition delay only for specific property 
Css :: scss extend 
Css :: how to change highlight color on website 
Css :: input type file placeholder 
Css :: vh and vw 
Css :: CSS adding background image from file 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =