Skip to main content Accessibility Feedback
Skip to Documentation Content

Avatar

The .avatar class turns an image into a circle, giving it a 1:1 aspect ratio and a 50% border radius.

A headshot of a white man with a shaved head and short beard wearing a purple gingham shirt
<img 
	class="avatar" 
	alt="A headshot of..."
	src="../chris.jpg" 
	width="175" 
	height="175"
>

Install

The .avatar class is included in kelp.css.

If you’re installing components individually, load the /css/components/avatar.css file.

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/kelpui@0/css/components/avatar.css">