r/css • • Jan 02 '20

Put and image inside text using css

https://www.youtube.com/watch?v=clDwknoKR9I
39 Upvotes

11 comments sorted by

View all comments

6

u/[deleted] Jan 02 '20

That position absolute and all can be replaced using flexbox. Just add display: flex; and then justify-content: center; and align-items: center;