background-image: url("url");
width:100px;
height:100px;
background-size:contain;
background-position:center;
border-radius:50%;
.image-cropper {
width: 100px;
height: 100px;
position: relative;
overflow: hidden;
border-radius: 50%;
}
img {
display: inline;
margin: 0 auto;
height: 100%;
width: auto;
}
Code Example |
---|
Css :: jest test try catch |
Css :: add image to div in css |
Css :: justify center wont wotk with max-width css |
Css :: glassmorphism in css |
Css :: space between text css |
Css :: purgecss cli |
Css :: box model properties |
Css :: border 1px thick |
Css :: how to make div position top in css |
Css :: mediaquery for portrate |
Css :: how to use font awesome with tailwind css |
Css :: @supports css |
Css :: css prevent background scrolling |
Css :: getting two scroll bars |
Css :: css not |
Css :: css add space to the top |
Css :: center flex |
Css :: background image path |
Css :: css image background |
Css :: gray scale css |
Css :: absolute center css |
Css :: keyframe |
Css :: select odd child css |
Css :: css blur image without blur borders |
Css :: css image hover |
Css :: Trimming One Line with CSS |
Css :: css cursor size |
Css :: text-transform |
Css :: webkit box shadow not working |
Css :: how to add an image to a label in css |