1 Commits
Author SHA1 Message Date
Эмиль 8c6fa7b2ac attepmt 1 2024-08-23 20:16:10 +03:00
2 changed files with 66 additions and 67 deletions
+13 -11
View File
@@ -7,25 +7,26 @@
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
</head> </head>
<body> <body>
<header>
<div class="main-preview"> <header class="header">
<h1>Дача Сталина</h1> <h1 class="header-name">Дача Сталина</h1>
<img class="main-preview-image" src="https://30.img.avito.st/image/1/1.4vLJ5La5Thv_TYwegeO6z61GTB13RcwTv0BMGXtRShk.Ewsg9tM6z2ZxLmivd2hH2Jdo76UKxxlT4qzIINkq8co" <img class="header-image" src="https://30.img.avito.st/image/1/1.4vLJ5La5Thv_TYwegeO6z61GTB13RcwTv0BMGXtRShk.Ewsg9tM6z2ZxLmivd2hH2Jdo76UKxxlT4qzIINkq8co"
alt="заглавная фотография участка"> alt="заглавная фотография участка">
</div>
</header> </header>
<main> <main>
<section> <section>
<div class="card snap-left"> <div class="card">
<div class="card-head-block snap-left"> <h2 class="card-name">Фитнесс зал</h2>
<h2>Фитнесс зал</h2> <div class="card-head-box">
<!--
<img class="card-image" src="https://10.img.avito.st/image/1/1.yyqVwra5Z8Oja6XGj_nkbv5gZcUrY-XL42ZlwSd3Y8E.I_D7tp8PO-7i68ZXnQLqeWPMDDbK84Dtsvs0HihmT_A" <img class="card-image" src="https://10.img.avito.st/image/1/1.yyqVwra5Z8Oja6XGj_nkbv5gZcUrY-XL42ZlwSd3Y8E.I_D7tp8PO-7i68ZXnQLqeWPMDDbK84Dtsvs0HihmT_A"
alt="фитнесс зал с боксерскими грушами"> alt="фитнесс зал с боксерскими грушами"> -->
</div> </div>
<div class="card-description-box"> <div class="card-description-box">
<p class="card-description">зал для занятий фитнессом и боксом</p> <!--
<p class="card-description">зал для занятий фитнессом и боксом</p> -->
</div> </div>
</div> </div>
<!-- <!--
@@ -55,5 +56,6 @@
<footer> <footer>
</footer> </footer>
<script></script> <script></script>
</body> </body>
</html> </html>
+53 -56
View File
@@ -3,80 +3,77 @@
} }
body, body,
header,
section,
footer,
h1, h1,
h2, h2,
h3, h3,
h4, h4,
p{
margin: 0;
font-weight: normal;
background-color: red;
font-family: 'Sans', sans-serif;
}
div, header, main, footer {
margin: 0;
}
p { p {
font-weight: normal;
font-family: 'Sans', sans-serif;
margin: 0;
border: 1px solid black;
background-color: rgb(255, 0, 0,.1);
padding: 0;
} }
.main-preview {
text-align: center; .header {
background-color: blue; height: 100vh;
width: 100%; background-color: aliceblue;
height: 80vh;
} }
.main-preview-image { .header-image {
height: 100%;
}
section{
background-color: darkred;
margin: auto;
text-align: center;
width: 100%;
}
.card {
display: block; display: block;
background-color: saddlebrown; height: 85%;
margin: 20px 0 20px 0; margin: auto;
padding: 20px;
height: 600px;
width: 80%;
border: 1px solid lightgray;
} }
.snap-left{ .header-name {
margin-right: auto; text-align: center;
} }
.snap-right{ .card {
margin-left: auto; width: 50%;
height: 250px;
background-color: antiquewhite;
}
.card-image {
display: flex;
height: 95%;
width: 95%;
margin-top: .75%;
margin-left: .75%;
}
.card-name {
text-align: center;
}
.card-head-box {
display: inline-block;
height: 85%;
width: 50%;
margin: 0;
background-color: rgba(255, 0, 0, 0.337);
}
.card-description-box {
display: inline-block;
height: 85%;
width: 45%;
padding: 10%;
margin: 0;
background-color: aqua;
} }
.card-description { .card-description {
display: flex;
} margin: auto;
.card-head-block{
display: inline-block;
text-align: center; text-align: center;
background-color: orange;
width: 30%;
}
.card-description-box {
height: 80%;
width: 30%;
display: inline-block;
background-color: white;
margin: 0 auto 0 auto;
} }
.card-image{
display: block;
width: 100%;
}