* fix: restructure certifications guide articles * fix: added 3 dashes line before prob expl * fix: added 3 dashes line before hints * fix: added 3 dashes line before solutions
521 B
521 B
title
| title |
|---|
| Make Circular Images with a border-radius |
Make Circular Images with a border-radius
Problem Explanation
We need to give our cat photo a border-radius of 50%.
Solutions
Solution 1 (Click to Show/Hide)
In class smaller-image add a border-radius of 50%:
.smaller-image {
width: 100px;
border-radius: 50%;
}
This class already assigned to our img element and making it perfectly circular.