I would like to display some text to the user when my div element is empty.
div
I have tried adding a placeholder attribute to my div but the t
i have already answered to such a question here with this test : http://codepen.io/gcyrillus/pen/hzLIE
div:empty:before { content:attr(data-placeholder); color:gray }
see If editable div have no text than set placeholder