There are many ways, but I like to use inline-flex
on my button
with two children, as flex offers many good properties:
button {
background-color: rgba(43, 162, 42, 1);
color: white;
margin: 0px;
padding: 0 1rem;
font-size: 0.8rem;
width: 90%;
height: 40px;
border-radius: 8px;
display: inline-flex;
align-items: center;
}
.col-text {
flex-grow: 1;
}
<button type="button" id="sendBy" class="btn mx-auto">
<span class="col-text">send</span>
<span>icon</span>
</button>
I have horizontal wide button.
Now I want to put transparent png on it right-edge side.
Is it possible??
For example, this button looks having the ‘f’ mark on blue button’s left edge.

<button type="button" id="sendBy"
class="btn mx-auto"
style="background-color:rgba(43,162,42,1);
color:white;
margin:0px;padding:0px;font-size:0.8rem;width:90%;
height:40px;border-radius:8px;">
send</button>
Yes you can use after css property. Here is link ohttps://www.w3schools.com/cssref/sel_after.asp
@TemaniAfif tnx for the info, but it seems to only effect “older” browsers? Or am I mistaken? I’ve only notices some issues with it on IE10/11.