+ 1
What are after and befor in css?
7 ответов
+ 8
Three elements are used to create a heart: one rhombus and two semicircle.
We create one element in HTML with id #heart1, that is the rhombus, then we add pseudo-elements: the first semicircle before the rhombus using #heart1:before and the second semicircle after the rhombus using #heart1:after.
+ 7
You are welcome😊
+ 2
#heart1{ left: 20px; position: relative; width: 90px; height: 90px; background: #f57070; transform: rotate(45deg); -webkit-transform:rotate(45deg); } #heart1:before{ width: 90px; height: 45px; border-top-left-radius: 90px; border-top-right-radius: 90px; background:#f57070; content: ""; position: absolute; bottom:88px; } #heart1:after{ width: 45px; height: 90px; border-bottom-left-radius: 90px; border-top-left-radius:90px; background:#f57070; content: ""; right:88px; position:absolute; }
+ 2
What about this code
+ 2
what is befor here
+ 2
Oh underestood thanks