I'm attempting to center a text and an icon, but the icon is set within a background.
How can I center the text and position the icon just to the left of the text?
Here is the link to the fiddle with the code: jsfiddle
<div class="error divError" style="text-align: center">
<p class="errorplaceholder">Error Text</p>
</div>
.divError {
background: url("https://www2.eiffel.com/download/images/warning_icon.png") no-repeat scroll left center rgba(0, 0, 0, 0);
color: #FF0000;
font-weight: bold;
margin: auto;
padding: 5px 10px 5px 25px;
}
Thank you in advance!