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);
}
.ace-heart {
position: relative;
background-image:url(/assets/course57/heart.svg);
background-repeat:no-repeat;
background-position:50% 50%;
background-size:50px;
}
.two-spade {
position: relative;
background-image:url(/assets/course57/spade.svg);
background-repeat:no-repeat;
background-position:50% 50%;
background-size:50px;
}
.two-cards .ace-heart::before{
content:“A”;
Position:absolute;
left:2px;
top:5px;
padding-bottom:25px;
width:25px;
height:25px;
color:red;
font-family:;
font-size:25px;
font-weight:bold;
background-image:url(/assets/course57/heart.svg);
background-repeat:no-repeat;
background-position:50% 100%;
background-size:25px;
}
.two-cards .ace-heart::after{
content:“A”;
Position:absolute;
right:2px;
bottom:5px;
padding-bottom:25px;
width:25px;
height:25px;
color:red;
font-family:;
font-size:25px;
font-weight:bold;
background-image:url(/assets/course57/heart.svg);
background-repeat:no-repeat;
background-position:50% 100%;
background-size:25px;
}
.two-cards .two-spade::before{
content:“2”;
Position:absolute;
left:2px;
top:5px;
padding-bottom:25px;
width:25px;
height:25px;
color:black;
font-family:;
font-size:25px;
font-weight:bold;
background-image:url(/assets/course57/spade.svg);
background-repeat:no-repeat;
background-position:50% 100%;
background-size:25px;
}
.two-cards .two-spade::after{
content:“2”;
Position:absolute;
right:2px;
bottom:5px;
padding-bottom:25px;
width:25px;
height:25px;
color:black;
font-family:;
font-size:25px;
font-weight:bold;
background-image:url(/assets/course57/spade.svg);
background-repeat:no-repeat;
background-position:50% 100%;
background-size:25px;
}