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
croganmā€¢10mo ago
Well without the position:absolute, it will show up either before or after the element Just like the class implies šŸ™‚
snxxwyy
snxxwyyā€¢10mo 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
croganmā€¢10mo ago
Yea no problem! Just to give you more control šŸ™‚
snxxwyy
snxxwyyā€¢10mo ago
šŸ‘
Want results from more Discord servers?
Add your server
More Posts