Технологии
дан куб и в нем три линии. Вам нужно добавить три тега так, чтобы получилось 16 квадратов. - вопрос №2734366
<!DOCTYPE html>
<html>
<head>
<title>codebra</title>
</head>
<body>
<div class = «box»>
<div class = «line_vert_1»></div>
<div class = «line_vert_2»></div>
<div class = «line_vert_3»></div>
</div>
</body>
</html>
.box {
float: left;
width: 200px;
height: 200px;
position: absolute;
top: calc(50% — 100px);
left: calc(50% — 100px);
background: #F1F1F1;
}
hr {
float: left;
width: 100%;
border: 0;
height: 2px;
position: absolute;
top: calc(25% — 2px);
background: #DDDDDD;
}
hr:nth-of-type(2) {top: calc(50% — 2px)}
hr:nth-of-type(3) {top: calc(75% — 2px)}
.line_vert_1, .line_vert_2, .line_vert_3 {
float: left;
width: 2px;
border: 0;
height: 100%;
background: #DDDDDD;
margin: 0 0 0 calc(25% — 2px);
}
январь 16, 2018 г.
-
Всего ответов: 1
-
<div class = «line_vert_1»></div>
<hr>
<div class = «line_vert_2»></div>
<hr>
<div class = «line_vert_3»></div>
<hr>