Home › Forums › CSS › How to place a image on the same line as text › Reply To: How to place a image on the same line as text
November 21, 2016 at 8:26 pm
#248083
Participant
Use :after
This is my code I used. Just change what you need.
CSS:
h2:after{display:inline-block;width:25px;height:25px;content:” “;background:url(YOUR_URL_HERE);background-size:100%;margin:10px 10px 0 5px!important;vertical-align:bottom;}