Tell us what’s happening:
Not sure what I am doing wrong, the output to the far right appears to look as it should…please help?! Thanks!
Your code so far
<div class = "heart"></div>
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0.
Link to the challenge:
You need to use two colons
:: for the pseudo-element.
CSS3 introduced the
::after notation (with two colons) to distinguish pseudo-classes from pseudo-elements. Browsers also accept
:after , introduced in CSS2.
is needed and why an empty string?
Thanks! Can you please explain why the double :
I updated my first post. The test wants you to use the CSS3 version so that is what is tested for. Browsers will accept the old version, likely forever as they need to keep backward compatibility.
Without the content property the pseudo-element will not render, and as we don’t want text we just use an empty string.
Thanks! That makes more sense now. Im still new to all of this but trying to learn so that hopefully I can pass he exam when I apply at Fullstack academy, Gracehopper