This sample demonstrates the default avatar and circle avatar in which the
.e-avatar
and
.e-avatar-circle
classes should be added, respectively to the target element.
The avatar is developed in pure CSS which is used to represents the profile picture or initials or icons in presentable way. It comes with two different shapes, they are listed below.
.e-avatar
class to the target element..e-avatar-circle
class to the target element.The avatar comes with 5 different sizes, and are applied through modifier classes. They are:
.e-avatar-
class..e-avatar-small
class..e-avatar
class. No additional class is needed for this..e-avatar-large
class..e-avatar-xlarge
class.
The
.e-avatar
is the main class, which should be included in the target element to use any of the other avatar features.
The images can be added in the following two different ways to the avatar:
background
property on the avatar element. It doesn’t require any additional element.