Just want to note that I was googling, but for some reason, the methods offered in Russian and English (StackOverflow / Exchange) do not work in my case.
<div class="about"> <div class="name">Джон Доу</div> <div class="profile">Профиль</div> </div> CSS:
.about { width: 100%; height: 24px; line-height: 24px; } .name { float: left; } .profile { float: left; margin-left: 40px; } .profile:before { content: url("images/profile.png"); } It is necessary to somehow center the image added verbally through :before .
.
As seen in the picture, the method proposed by Deonis shifts the picture down a bit, but it is still not centered vertically.