<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Испытание: карточка курса</title>
</head>
<body>
<div class="main-conteiner">
<div class="text-conteiner">
<span>Курс «Фоны»</span>
<p>Учимся использовать фоновые цвета и изображения, разбираемся с форматами, знакомимся с приёмами создания декоративных эффектов.
</p>
</div>
<div class="icon-conteiner">
<a class="icon fb" href=""></a>
<a class="icon tw" href=""></a>
<a class="icon gg" href=""></a>
</div>
</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 280px;
min-height: 280px;
padding-top: 20px;
padding-left: 20px;
font-size: 14px;
font-family: “Arial”, sans-serif;
line-height: 1.2;
background: #ecf0f1;
}
.main-conteiner {
margin: 0px;
padding: 20px;
max-height: 200px;
max-width: 200px;
background: #1abc9c;
color: white;
}
.main-conteiner span {
font-size: 20px;
}
.main-conteiner p {
margin-top: 20px;
}
.icon-conteiner {
margin: 25px 0 -3px 0;
}
.icon-conteiner .icon {
display: inline-block;
background-color: #16a085;
background-image: url("/assets/course14/social-challenge.png");
height: 30px;
width: 30px;
margin-right: 5px;
}
.fb {
background-repeat: no-repeat;
}
.tw {
background-repeat: no-repeat;
background-position: -30px 0px;
}
.gg {
background-repeat: no-repeat;
background-position: -60px 0px;
}