Circle with Border Radius
CSS
Easy
2 views
Problem Description
Create a round avatar placeholder for meetcode.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use a square div and border-radius: 50%.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
.avatar { width: 72px; height: 72px; border-radius: 50%; background: #0b5; color: #fff; display: grid; place-items: center; font-weight: 700; }
</style>
</head>
<body>
<div class='avatar'>M</div>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!