Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
3

how to add images to your button in CSS?

potatojs
potatojs

hi i want to know how to add images to your html button element using CSS?

2 years ago
You are viewing a single comment. View All
1
Coder100
Coder100

Sorry, you can't do that. Use JS.
However, there is a :before and :after tag that can append text:

div::before { content: "This is text only."; } div::after { content: "This is text only."; }
2 years ago