+ 1
Why changing the position property to relative on the after style change its size?
https://code.sololearn.com/WcyYzTTnF3ha/?ref=app One more question: Content here has a value of empty string. So, why removing and adding the content property make changes?
2 Respostas
+ 4
summary:
All pseudo classes like ::before and ::after have default display of inline
And elements that have no content in position relative + display of inline will not take any width.
reference: https://stackoverflow.com/questions/40316496/difference-between-relative-positioned-pseudo-element-and-absolute-positioned-ps
0
🔫 Rick Grimes thanks man