I have div with Material Design icon (span) and I wanna center this icon correctly to fix the gap (see screenshot). What's the way to do that? (I tried text-align on items div, but it doesn't work)
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
margin: 0;
font-family: 'Roboto', sans-serif;
}
header {
display: flex;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
padding: 1em;
background: #3378FF;
color: white;
}
.right_panel {
align-items: center;
}
.title {
font-size: 24px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<header>
<div class="title">Shop</div>
<div class="right_panel">
<span class="material-icons">
account_circle
</span>
</div>
</header>
<div></div>
</body>
</html>