Hi folks,
In the starting code of this lesson the .heart::after selector makes a blue box, but that depends on the ‘position: absolute’. When you comment it, then the box doesn’t show up anymore. Looks like the width and height are not taken into account anymore when the absolut positioning isn’t there. I’m trying to understand the logic behind that. Somebody able to explain?
.heart::after {
background-color: blue;
content: "";
border-radius: 25%;
//position: absolute;
width: 50px;
height: 50px;
top: 0px;
left: 25px;
}
Thx