@DimaD0106d

Как можно разместить так же блоки как на макете? и как убрать баг со скроллом внизу страницы?

вот макет:

6122366e25b43330425177.png

вот мой сайт:

612236a4d4e64940015564.png

вот мои коды:

html:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Сайи</title>
  <link rel="stylesheet" type="text/css" href="style.css">
  <script src="https://kit.fontawesome.com/ec20ff261b.js" crossorigin="anonymous"></script>
</head>
<body>
  <header>
    <div class="header">
      <div class="header-left">
        <div class="text-head">
          <h2>Product name</h2>
        </div>
        <div class="description-head">
          <h2><i class="fas fa-check"></i> Put on this page information about your product</h2>
          <h2><i class="fas fa-check"></i> A detailed description of your product</h2>
          <h2><i class="fas fa-check"></i> Tell us about the advantages and merits</h2>
          <h2><i class="fas fa-check"></i> Associate the page with the payment system</h2>
        </div>
      </div>
      <div class="header-right">
        <div>
          <img src="image/Shape-9.png">
        </div>
      </div>
    </div>
  </header>

  <section>
    <div class="section">
      <div class="section-left">
        <h1 class="section-text-main">About your product</h1>
        <h2 class="section-description1">
          Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis facilis fuga, illo at. Natus eos, eligendi illum rerum omnis porro ex, magni, explicabo veniam incidunt in quam sapiente ut ipsum.
        </h2>
        <h2 class="section-description2">
          Pariatur iure ab sunt nesciunt, quibusdam odio iste cumque itaque, ipsa vel exercitationem ullam quos aut nostrum cupiditate fuga quaerat quam animi dolores. Sequi itaque, unde perferendis nemo debitis dolor.
        </h2>
      </div>
      <div class="section-right">
        <div class="section-video">
          <img src="image/video.png">
        </div>
      </div>
    </div>
  </section>
  <section2>
    <div class="section2">
      <div>
        <div class="h1-section">
          <h1>Dignity and pluses product</h1>
        </div>
        <div class="left-section2">
          <div class="left-section2">
            <div class="left-section2-row1">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
            <div class="left-section2-row2">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
            <div class="left-section2-row3">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
          </div>
        </div>
        <div class="right-section2">
            <div class="right-section2-row1">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
            <div class="left-section2-row2">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
            <div class="left-section2-row3">
              <h2>Delectus dolorem vero quae beatae quasi dolor deserunt iste amet atque, impedit iure placeat, ullam. Reprehenderit aliquam, nemo cum velit ratione perferendis quas, maxime, quaerat porro totam, dolore minus inventore.</h2>
            </div>
        </div>
      </div>
    </div>
  </section>
</body>
</html>


css:

*{
  margin: 0;
  padding: 0;
}
header{
  background: #445162;
  height: 378px;
  color: white;
}
.header{
  padding: 50px;
  display: flex;
  width: 100%;
}

.text-head{
  font-size: 35px;
}

.header-left{
  width: 60%;
}
.header-right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.description-head{
  margin-top: 50px;
  line-height: 50px;
}

.section{
  width: 100%;
  padding: 50px;
  color: #333333;
  display: flex;
}

.section-left{
  width: 62%;
}

.section.right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.section-text-main{
  color: #445161;
  font-size: 40px;
  margin-bottom: 38px;
}

.section-description1{
  width: 1000px;
  margin-bottom: 20px;
}

.section-description2{
  width: 1000px;
}


.section2{
  display: flex;
  margin-top: 198px;
  width: 100%;
  padding: 50px;
}
.h1-section{
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-section2{
  line-height: 36px;
  margin-top: 36px;
  width: 60%;
}

.right-section2{
  display: flex;
  justify-content: flex-end;
}
  • Вопрос задан
  • 83 просмотра
Решения вопроса 1
weranda
@weranda
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
22 нояб. 2024, в 06:06
1500 руб./в час
22 нояб. 2024, в 06:04
1 руб./за проект
22 нояб. 2024, в 03:54
1500 руб./за проект