before & after in Css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

24th Jul 2023, 8:27 AM
Shahin Rahman
Shahin Rahman - avatar
2 Answers
+ 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 <<
24th Jul 2023, 9:01 AM
Jan Markus