7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS
CSS ::before
and ::after
pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a <div>
but not an <input>
). This effectively allows you to show something on a web page that might …