Jump to content
  • 0

Проблема в верстки с footer( Первая верстка).


Stomi
 Share

Question

Решил узучить Html. Начал свою первую вертску и у меня возникла проблема с footer. Проблема в том что у меня у меня как-о не рабоет margin и мне приходить ставить большие числа(px), чтобы опустить элемент вниз. Также у меня почему-то footer вылазиет поверх фото, хотя должен быть внизу их ТУТ. Помогите.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Burning man</title>
  <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
  <header class="header">
    <div class="container">
      <div class="nav">
        <img class="logo" src="img/logo.jpg" alt="Burning man">
        <ul class="menu">
          <li>
            <a href="#">Home</a>
          </li>
          <li>
            <a href="#">About</a>
          </li>
          <li>
            <a href="#">Tickets</a>
          </li>
          <li>
            <a href="#">Contacts</a>
          </li>
        </ul>
        <a href="tel:+18938392364"class="tel">+1 893 839-23-64</a>
      </div>
      <div class="offer">
        <p>Not tne event. The life</p>
        <h1 class="offer-h1">Burning MAN</h1>
        <a href="#" class="btn">Book the tickets</a>
      </div>
    </div>
  </header>
  <section class="about">
    <div class="container">
     <h2>About the event</h2>
      <div class="description">
        <div class="text-left">
          <h3>Rebuilding the society</h3>
          <p>Burning Man is a network of people inspired by the values reflected in the Ten Principles and united in the pursuit of a more creative and connected existence in the world. Throughout the year we work to build Black Rock City, home of the largest annual Burning Man gathering, and nurture the distinctive culture emerging from that experience. </p>
        </div>
        <div class="text-right">
          <h3>This drives us</h3>
          <p>Burning Man Project will bring experiences to people in grand, awe-inspiring and joyful ways that lift the human spirit, address social problems, and inspire a sense of culture, community, and civic engagement. Burning Man provides infrastructural tools and frameworks to support local communities in applying the Ten Principles through six interconnected program areas, including Arts, Civic Involvement, Culture, Education, Philosophical Center, and Social Enterprise.</p>
        </div>
        <div class="gallery">
          <img src="img/img1.jpg" alt="Photo">
          <img src="img/img2.jpg" alt="Photo">
          <img src="img/img3.jpg" alt="Photo">
        </div>
      </div>
    </div>
  </section>
  <footer class="footer">
    <div class="container">
      <div class="footer-text">
        <p>
          ©1989-2020 burning man project
        </p>
        <p>
        WAYUP & Андрей Гаврилов<
        </p>  
      </div>
    </div>
  </footer>
</body>
</html>
body{
    padding: 0;
    margin: 0;
    font-family: "Anton", sans-serif
    color: black;
    font-size: 16px;
}
h1,h2,h3,h4,h5,h6{
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}
h2{
    font-size: 50px;
    margin-bottom: 58px;
    font-family: Anton;
}
ul,li{
    display: block;
    padding: 0;
    margin: 0;
}
p{
    margin: 0;  
    padding: 0; 
    text-decoration: none;  
}
footer{
    margin: 0;
    padding: 0;
}
.container{
    width: 1170px;
    margin: 0 auto;
}
header{
    background: url("../img/header-bg.jpg") no-repeat center top / cover;
    height: 900px;
}
header a{
    color: #FFFFFF;
}
.menu{
    display: flex;
}
.menu li a{
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.1em;
}
.menu li{
    margin-right: 40px;
}
.tel{
    font-size: 17px;
    text-decoration: none;
    margin-left: auto;
    letter-spacing: 0.1em;
}
.nav{
    display: flex;
    align-items: center;
    font-family: Anton;
    padding-top: 57px;
}
.logo{
    margin-right: 69px;
}
.offer{
    font-family: Anton;
    color: #FFFFFF;
    margin-top: 216px;
    text-transform: uppercase;
    text-decoration: none;
}
.offer p{
    font-size: 30px;
    letter-spacing: 0.1em;
}
.offer-h1{
    font-size: 100px;
    letter-spacing: 0.02em;
    margin-top: -9px;
}
.btn{
    text-decoration: none;
    display: block;
    font-size: 17px;
    text-align: center;
    letter-spacing: 0.1em;
    padding: 17px 47px;
    border: 1px solid #fff;
    width: 238px;
    transition: all 1s ease;
}
.btn:hover{
    background: #fff;
    color: #000;
}
section{
    padding-top: 113px;
}
.about h3{
    font-family: Anton;
    font-size: 25px;
    line-height: 37px;
}
.description{
    display: flex;
    justify-content: space-between;
    margin-top: 58px;
}
.description p{
    font-family: Open Sans;
    text-align: justify;
    line-height: 1.62em;
    width: 564px;
}
.text-right{
    margin-left: 36px;
}
.gallery{
    display: flex;
    justify-content: space-between;
    position: absolute;
    padding-top: 265px;
}
.gallery img{
    margin-right: 30px; 
}
.footer-text p{
    margin-right: 60px;
}
.footer-text{
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    display: flex;
    padding: 114px 0;
    margin-top: 300px;
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy