• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 JavaScript, TS 게시판 fixed 하면 영역 분할이 안되고 겹쳐서 나와요 ㅠㅠ

fixed 하면 영역 분할이 안되고 겹쳐서 나와요 ㅠㅠ

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #17616

    권재현
    참가자

    그다음 코드 입니다.

     

    --상단 바 메뉴--

    <div class="nav-menu">
       
        <h4 style="margin: 0;">Shirts Studio</h4>
        <a id="nav-sub-button">Products</a>
    </div>

    <ul class="list-group nav-sub">
        <li class="list-group-item">An item</li>
        <li class="list-group-item">A second item</li>
        <li class="list-group-item">A third item</li>
    </ul>

    --점보트론--
    <div class="jumbotron main-background">
        <h1 class="display-4" >Shirt Studio</h1>
        <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
        <hr class="my-4">
        <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
        <a id="login" class="btn btn-primary btn-lg" href="#" role="button">Log In</a>
        <a id="show-menu" class="btn btn-danger btn-lg" href="#" role="button">show Menu</a>
        <button class="k"> 권재현</button>
    </div>

    CSS

    .nav-menu{
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: transparent;
        padding:15px;
        position: fixed;
        z-index: 5;
        width: 100%;
        margin-bottom: 200px;
    }

    .main-background{

        background-image: url(산티아고.jpg) ;
        background-size: cover;
        color: white;
        border-radius: 0px;
    }

     

    fixed속성 하면 겹쳐서 나와요ㅠㅠ

    #17617

    codingapple
    키 마스터

    원래 fixed 하면 공중에 띄워서 상단 고정해주세요 라는 뜻이기 때문에 저게 맞습니다

    색만 하얗게 바꾸고

    밑에있는 큰 박스에 margin-top 이런거 주면 분할된 느낌 납니다 

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠