Испытание: псевдоэлементы [19/20] 97%

что только не пробовала, объясните, как это исправить
Спасибо.

[19/20] Испытание псевдоэлементы

.ace-heart {
background:url(“heart.svg”) no-repeat 50% 50%;
background-size: 50px auto;
}

.ace-heart::before {
content: “A”;
font-size: 25px;
color: red;
font-weight: bold;
position: absolute;
padding-bottom: 20px;
top: 5px;
left: 5px;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.ace-heart::after {
content: “A”;
font-size: 25px;
color: red;
font-weight: bold;
position: absolute;
padding-bottom: 20px;
right: 5px;
bottom: 5px;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.two-spade {
background:url(“spade.svg”) no-repeat 50% 50%;
background-size: 50px auto;
}

.two-spade::before {
content: “2”;
font-size: 25px;
color: black;
font-weight: bold;
position: absolute;
padding-bottom: 20px;
top: 5px;
left: 5px;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.two-spade::after {
content: “2”;
font-size: 25px;
color: black;
font-weight: bold;
position: absolute;
padding-bottom: 20px;
right: 5px;
bottom: 5px;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

html,
body {
margin: 0;
padding: 0;
font-family: “Arial”, sans-serif;
line-height: 30px;
}

body {
min-width: 550px;
min-height: 290px;
padding: 10px;
}

.two-cards {
width: 350px;
height: 250px;
padding: 10px;
text-align: center;

}

.two-cards div {
position: relative;
display: inline-block;
width: 120px;
height: 180px;
margin: 0 10px;
margin-top: 30px;
vertical-align: middle;
background-color: white;
border-radius: 5px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Ширина иконок, не изменяйте */
.two-cards div::before,
.two-cards div::after {
width: 20px;
}

/* Поворот нижней иконки */
.two-cards div::after {
transform: rotate(180deg);
}
.two-cards .ace-heart{
background: url(“heart.svg”) no-repeat 50% 50%;
background-size: 50px auto;
font-size:25px;
color:red;
background-color: white;
}
.two-cards .two-spade{
background: url(“spade.svg”) no-repeat 50% 50%;
background-size: 50px auto;
color:black;
font-size:25px;
background-color: white;
}
.two-cards .ace-heart::after{
content:“A”;
position: absolute;
right: 5px;
bottom: 5px;
padding-bottom:20px;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}
.two-cards .ace-heart::before{
content:“A”;
position: absolute;
top: 5px;
left: 5px;
padding-bottom:20px;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}
.two-cards .two-spade::after{
content:“2”;
position: absolute;
right: 5px;
bottom: 5px;
padding-bottom:20px;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}
.two-cards .two-spade::before{
content:“2”;
position: absolute;
top: 5px;
left: 5px;
padding-bottom:20px;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

html,
body {
margin: 0;
padding: 0;
font-family: “Arial”, sans-serif;
font-weight: bold;
line-height: 30px;
}

body {
min-width: 550px;
min-height: 290px;
padding: 10px;
}

.two-cards {
width: 350px;
height: 250px;
padding: 10px;
text-align: center;
}

.ace-heart {
background: url(“heart.svg”) no-repeat 50% 50%;
background-size: 50px auto;
}

.ace-heart::before {
content: “А”;
position: absolute;
padding-bottom: 20px;
left: 5px;
top: 5px;
font-size: 25px;
color: red;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.ace-heart::after {
content: “А”;
position: absolute;
padding-bottom: 20px;
right: 5px;
bottom: 5px;
font-size: 25px;
color: red;
background: url(“heart.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.two-spade {
background: url(“spade.svg”) no-repeat 50% 50%;
background-size: 50px auto;
}

.two-spade::before {
content: “2”;
position: absolute;
padding-bottom: 20px;
left: 5px;
top: 5px;
font-size: 25px;
color: black;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;

}

.two-spade::after {
content: “2”;
position: absolute;
padding-bottom: 20px;
right: 5px;
bottom: 5px;
font-size: 25px;
color: black;
background: url(“spade.svg”) no-repeat 50% 100%;
background-size: 25px auto;
}

.two-cards div {
position: relative;
display: inline-block;
width: 120px;
height: 180px;
margin: 0 10px;
margin-top: 30px;
vertical-align: middle;
background-color: white;
border-radius: 5px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Ширина иконок, не изменяйте */
.two-cards div::before,
.two-cards div::after {
width: 20px;
}

/* Поворот нижней иконки */
.two-cards div::after {
transform: rotate(180deg);
}

05/12/2022 - 100%. Свойства background не сокращал, для более простой читабельности кода.

.ace-heart {
 background-image: url(heart.svg);
 background-repeat: no-repeat;
 background-position: 50% 50%;
 background-size: 50px;
 }
.ace-heart::before {
 content: "A";
 font-weight: bold;
 position: absolute;
 color: red;
 padding-bottom: 20px;
 font-size: 25px;
 left: 5px;
 top: 5px;
 background-image: url(heart.svg);
 background-repeat: no-repeat;
 background-position: 50% 100%;
 background-size: 25px;
}
.ace-heart::after {
 content: "A";
 font-weight: bold;
 position: absolute;
 color: red;
 font-size: 25px;
 right: 5px;
 bottom: 5px;
 padding-bottom: 20px;
 background-image: url(heart.svg);
 background-repeat: no-repeat;
 background-position: 50% 100%;
 background-size: 25px;
}
.two-spade {
 background-image: url(spade.svg); 
 background-repeat: no-repeat;
 background-position: 50% 50%;
 background-size: 50px;

}
.two-spade::before {
 content: "2";
 font-weight: bold;
 position: absolute;
 color: black;
 font-size: 25px;
 padding-bottom: 20px;
 left: 5px;
 top: 5px;
 background-image: url(spade.svg);
 background-repeat: no-repeat;
 background-position: 50% 100%;
 background-size: 25px;
 }
.two-spade::after {
  content: "2";
  position: absolute;
  font-weight: bold;
  color: black;
  font-size: 25px;
  padding-bottom: 20px;
  right: 5px;
  bottom:5px;
  background-image: url(spade.svg);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size:25px;
}

1 лайк