+ 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?

14th May 2020, 10:30 AM
Sajid
Sajid - avatar
2 Antworten
+ 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
14th May 2020, 10:45 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
🔫 Rick Grimes thanks man
14th May 2020, 11:29 AM
Sajid
Sajid - avatar