Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS understanding [class*="content"]:before Reply To: understanding [class*="content"]:before

#145914
Tom Houy
Participant

You can use the :before and :after selectors to append additional content to your existing content via CSS.

Something such as:

p:before
{
content:”» “;
}

Would append a “» ” before every paragraph. You could also use it to add things such as icons before or after some content, for example.