Writing content with CSS

Using :before and :after with the content style you can add text to your CSS classes.

This code below will add >> at the end of the cool_button.

.cool_button{/*Whatever you need*/}
.cool_button:after{ content: '>>'; }

About Ricard Torres

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> by using this tags.