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 {
background-image: url(heart.svg);
}
.two-spade {
background-image: url(spade.svg);
}
.ace-heart,
.two-spade {
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 50px
}
.ace-heart::after,
.ace-heart::before {
background-image: url(heart.svg);
background-repeat: no-repeat;
position: absolute;
padding-bottom: 20px;
content: “A”;
font-weight:bold;
font-size: 25px;
color: red;
}
.two-spade::after,
.two-spade::before {
background-image: url(spade.svg);
background-repeat: no-repeat;
position: absolute;
padding-bottom: 20px;
content: “2”;
font-weight:bold;
font-size: 25px;
color: black;
}
.ace-heart::before,
.two-spade::before {
background-repeat: no-repeat;
background-position: 50% 100%;
background-size: 25px;
left: 5px;
top: 5px;
}
.ace-heart::after,
.two-spade::after {
background-repeat: no-repeat;
background-position: 50% 100%;
background-size: 25px;
right: 5px;
bottom: 5px;
}
Прошу разнести в пух и прах мои старания конструктивной критикой!
Спасибо