The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › :after & :before with inputs – I want small dashes
Hi i would love to know how to add small dashes :before and :after a input[type=text]
but it doesn’t seem to be working. So I come here for some protips.
The codepen includes how it should have been.
inputs and images don’t take pseudo-elements.
Use a label or a span to wrap the input and use the pseudo-elements on that.