Amazing :before / :after pseudo elements

I want to share a useful trick using pseudo elements to save you time on your projects. Pseudo elements can allow you to add content to your page by CSS without needing to change the HTML. The :before element will add content right after opening tag and before any nested elements (including the text) inside of the targeted element. The :after element will add content right before the closing tag and after any nested elements (including the text) inside of that element. Here is an example: div:after { content: “hello”; } The value for content can be the following: String (Read more...)