.avatar-container { position: relative; } .avatar-text { position: absolute; top: 25px; left: 10px; bottom: 20px; right: 20px; color: white; padding-left: 20px; padding-right: 20px; }