Basic CSS for an avatar and how to display it in different styles?
Based on Bootstrap, there are some elcom Platform styles for an avatar, including:
Add the .avatarCircle
class to the <img>
element to have the circle avatar style.
This style is useful in case you want to display a square picture as a circle one. For example: User avatar for the main activity sharing.
.avatarMedium
class to the <a>
element that includes <img>
to have the rounded corner avatar style.
This style is set as default for avatars with different size.
.avatarLargeWithBorder
class to the <img>
element to have the rounded corner avatar with border style.
It is used to make an avatar more clear and formal.