Can a ::before selector be used with a <textarea>?

Viewed 25668

I'm experimenting with some styles on <textarea>s and I tried doing some stuff with ::before and ::after selectors and I couldn't to anything to get them to work. So the question is: is this possible? I know the CSS surrounding forms is arcane beyond mention but it seems like this should work.

3 Answers
<div class='tx-div-before'></div>

use this before textarea and

<div class='tx-div-after'></div> 

use this code after textarea. and add before and after psedu element.

Related