Here is the code I have:
.usp-bar {
display: flex;
flex-wrap: wrap;
background-color: #005932;
color: #fff;
font-weight: 700;
padding: 10px 0;
margin-top: 0;
justify-content: center;
height: auto;
}
.usp-text {
font-family: inherit;
font-size: inherit;
margin: auto;
}
.icon {
background-image: url(/media/icon.png);
background-repeat: no-repeat;
width: 40px;
height: 40px;
}
Here is the corresponding HTML:
<div class="usp-bar">
<div class="icon"></div>
<div class="usp-text">USP 1</div>
<div class="icon"></div>
<div class="usp-text">USP 2</div>
<div class="icon"></div>
<div class="usp-text">USP 3</div>
</div>
I am trying to position an icon to the left of each text box within a full-width responsive bar. The text should be centered and overlay the icon as a background image. Can anyone assist with this design challenge?