Pseudo element explanation

Hey, let's say I've got a section with a ::before pseudo element on it, could someone please explain the difference between the pseudo element with a position: absolute; with the parent having position: relative; on it compared to it without that? I know how the position: absolute; and position: relative; functionality works but i'm just wondering if the positioning functionality without the position: absolute; on it changes or is different in relation to the section parent?
4 Replies
croganm
croganm17mo ago
Well without the position:absolute, it will show up either before or after the element Just like the class implies 🙂
snxxwyy
snxxwyyOP17mo ago
ohhh it was really that simple? 😅 i thought there was like a whole functionality change or something, thank you for the help and quick reply 🙂
croganm
croganm17mo ago
Yea no problem! Just to give you more control 🙂
snxxwyy
snxxwyyOP17mo ago
👍
Want results from more Discord servers?
Add your server