New course! Every coder should learn Generative AI!
Try a free lesson0
before & after in Css
I am make button and i want to use before after how can i use this anyone give me a code
2 Answers
+ 6
This will help you very detailed:
https://www.digitalocean.com/community/tutorials/how-to-use-links-and-buttons-with-state-pseudo-classes-in-css
+ 3
perhaps this example will help you:
<!DOCTYPE html>
<html>
<head>
<style>
.braces::before {
content:'>> ';}
.braces::after {
content:' <<';}
</style>
</head>
<body>
<p class='braces'>Hello</p>
</body>
</html>
output:
>> Hello <<