Locked lesson.
About this lesson
Adding Rounded features to images with CSS.
Exercise files
Download this lesson’s related exercise files.
Rounded Images.docx58.8 KB Rounded Images - Solution.docx
58.9 KB
Quick reference
Rounded Images
Rounding images is a nice visual effect.
When to use
Any image can be rounded.
Instructions
To round an image, use the border-radius property with either pixels or percentages.
border-radius: 5px;
or
border-radius: 10%;
To make an image transparent, give it an opacity property:
opacity: 0.5;
To make an image rounded and give it a cool outline:
img {
border: 1px solid #cccccc;
border-radius: 5px;
padding:10px;
}
Hints & tips
- border-radius: 10px;
- border-radius: 50%;
- opacity: 0.5;
Lesson notes are only available for subscribers.