My question builds on this question. Just like abelenky, I want to insert text in front of an HTML element using CSS only. Marcel Jackwerth's answer worked perfectly, however, I need something additional. When the text is inserted, I want the element to be indented like in a list:
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Imagine that instead of the bullet point, the text that has been inserted with CSS should be shown ("Joe's Task" for example). How can I accomplish such an effect?
Note: I tried using a list by removing the bullet point style and adding the text using :before as described here, however the text in the :before style just flows with the rest of the text.