img {
border-radius: 50%;
height:200px;
width:200px;
}
/*image size, (height & width) both must be same.
if they are not same then no circle.
*/
img.rounded-corners {
border-radius: 30px;
}
img{
width: 200px;
height:200px;
border-radius: 50%;
}
img {
border-radius: 50%;
height:100px;
width:100px;
}
/* change image height and width to see your image preview.
for me all of the different images dimensions are rounded with this css*/
/*Note :Height and width should be of same size*/
.img-circle {
aspect-ratio: 1;
border-radius: 50%;
object-fit: cover;
width: 100%;
}
Code Example |
---|
Css :: elementor ccs code for gradient |
Css :: css make ul on multiple lines |
Css :: wave css |
Css :: grid-template-columns |
Css :: materialize css |
Css :: css for chrome only |
Css :: linear-gradient tailwind |
Css :: input background color |
Css :: php executable not found. install php 7 and add it to your path |
Css :: text decoration css transition |
Css :: css button style rectangle |
Css :: css select alternate elements |
Css :: css materialize |
Css :: media queries import file |
Css :: box shadow 2 sides only |
Css :: animations |
Css :: nativescript hr |
Css :: image overlay css |
Css :: change border highlight color on an input text element |
Css :: Responsive Web Design - Videos |
Css :: how to insert icons pseudo content |
Css :: how to color links |
Css :: npm next-css |
Css :: allfont cdn |
Css :: css ripple effect |
Css :: css color codes |
Css :: media query min and max width |
Css :: comment in css |
Css :: changer couleur liens cliqués css |
Css :: css quitar el icono de lista |