Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#248083
I.m.learning
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;}