Pseudo element not showing up
So I'm trying to make a currency input and I want it to have a dollar sign ($) floating inside of the input but not part of the actual value of the input (decoration if you will). im trying to do this with pseudo elements (first time using them). I have an input called
#cost
with the code below, nothing shows up.
3 Replies
heres the html if that helps:
thanks in advance!
inputs can't have pseudo elements.
or rather, they can't have ::before or ::after psuedo elements
You will need to wrap the input in an element and apply the pseudo element to that.
thank you!