Блок не встает на свое место, как исправить?

Написал верхнее меню, добавил картинку, все шло хорошо. Следующий блок оказался за картинкой и его не видно. Не понимаю почему
html(lang='ru')
    head
        meta(charset='utf-8')
        title Test
    body
        header
    nav(class='header__menu')
        a(href="index.pug")
            img(src='../img/logo.png' class='main__logo' )
        .link__container
            a(class='header__link' href='#') the problem 
            span(class='header__link') |
            a(class='header__link' href='#') PiedPiperCoin
            span(class='header__link') |
            a(class='header__link' href='#') the team
        .photo__container
            img(src="../img/Jumbotron.png" class="header__photo")
    .main__container
        h1 The Problem

@import 'null';
@import 'fonts';

$header_color: #007765;
$link_fonts: 'Roboto-Medium';

body{
    max-width: 1219px;
    background-color: #EEEEEE;

}

header {
    margin: auto 59px;
    background-color: $header_color;
    font-family: $link_fonts;


    .main__logo{
        width: 180px;
        height: 40px;
        position: relative;
        top: 20px;
        left: 20px;
        cursor: pointer;
        
        

    }
    .link__container{
        margin-right: 49px;
        position: relative;
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
        .header__link{
            padding-right: 6px;
            color: #fff;
            font-size: 22px;
            position: relative;
            bottom: 28px;
        }
    }

    .photo__container{
        position: relative;


        .header__photo {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: auto;
          }
    }
}

.main__container{
    margin: auto 59px;
    h1{
        color: $header_color;
        font-size: 30px;
    }
}
  • Вопрос задан
  • 93 просмотра
Решения вопроса 1
cannibal_corpse
@cannibal_corpse
Верстальщик руками
Вложи nav внутрь body
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы