I have doubts regarding the “::after” CSS property. If you look into the image1, you’ll find two cases there.
CASE1:
I have added two “p” elements and grouped them into a “div” element. Then I used the “::after” property to see the effect. As this property says, the “::after” selector inserts something after the content of each selected element(s). In this case, the property inserts the content on the next line.
CASE 2:
I have added the “img” element and grouped it using the “div” element, and I used the “::after” property to add content and the content is added next to the image.
Question => Why in first case, it is not being added next to “p” element ? And I tried the “::after” property on “p” element and it add next to it as shown below. why it is different in CASE 1?