0

[SOLVED] can s.o. help me! I have a small brain :'(

for some reason, I'm unable to make the input's "before" pseudo-element work https://github.com/brahim-radhoin/psychic-invention/blob/main/style/main.scss (line 91). I'm trying to make it react when hovered on, but the before element isn't even working. Please Help!!

16th Feb 2021, 7:50 PM
Brahim RADHOUANE
Brahim RADHOUANE - avatar
2 odpowiedzi
+ 5
before and after pseudo element aren't available for br, hr, img, input, select, textarea elements... you should wrap the input in a span and apply before/after on it ;)
16th Feb 2021, 8:09 PM
visph
visph - avatar
0
Thank you kind stranger <3
16th Feb 2021, 8:53 PM
Brahim RADHOUANE
Brahim RADHOUANE - avatar