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

home2 게시판 HTML/CSS 게시판 API 실습 질문

API 실습 질문

  • 이 주제에는 3개 답변, 2명 참여가 있으며 codingapple2 년 전에 전에 마지막으로 업데이트했습니다.
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 글쓴이
  • #87364

    김승혁
    참가자
    1. 아래 카드 박스들을 한 화면에 다 보여지게 하려면 어떻게 해야하나요 ㅠㅠ
       flex박스 주고 width 잘 준것 같은데.....(아래 html과 css 남겨 드리겠습니다.)
    
    2. 그리고 차트도 반응형처럼 하려면 어떻게 해야하나요?
    
    
    캡처
    <html>
    <div class="main_container">
        <h2>Dashboard</h2>
        <div class="row">
            <div class="col">
                <div>
                <p>Earning(Monthly)</p>
                <p>$400,000</p>
                </div>
                <i class="fas fa-calendar"></i>
            </div>
                <div class="col">
                <div>
                 <p>Earning(Annual)</p>
                <p>$800,000</p>
                </div>
                <i class="fas fa-dollar-sign"></i>
            </div>
            <div class="col">
                <div>
                <p>Tasks</p>
                <p>13</p>
                </div>
                <i class="fas fa-tasks"></i>
            </div>
            <div class="col">
                <div>
                <p>Requests</p>
                <p>26</p>
                </div>
                <i class="fas fa-comments"></i>
            </div>
        </div>
    </div>
    --------------------------------------------
    <CSS>
    
    .main_container {
        position: absolute;
        left: 70px;
        top: 100px;
        width: 100%;
    }
    .row {
        display: flex;
        
        justify-content: center;
        align-items: center;
    }
    .col {
        border: 0.5px solid black;
        border-radius: 5px;
        margin-left: 10px;
        width: 25%;
        display: flex;
        justify-content: space-between;
        align-content: center;
        padding: 10px;
    }
    .col i {
        font-size: 30px;
        color: rgb(126, 126, 126);
        line-height: 300%;
        text-align: center;
        margin-right: 20px;
    }
    .col p {
        font-size: 18px;
        line-height: 10px;
        margin-left: 10px;
    }
    .chart_container {
        position: absolute;
        background-color: rgb(214, 214, 214);
        top: 300px;
        left: 70px;
        width: 60%;
        box-shadow: 1px 1px 5px rgb(170, 170, 170);
        border: 0px;
    }
    .chart_box {
        background-color: white;
        border: 0px;
    }
     
    
    
    #87365

    codingapple
    키 마스터
    일단 main_container 박스는 position으로 공중에 띄우지맙시다 차트도요
    #87593

    김승혁
    참가자
    아예 position 속성을 사용하지 말라는 말씀이시죠?
    그럼 position없이 데쉬보드를 사이드바와 안겹치겠끔 하려면 마진주는 방법밖에 없나요?...
    
    
    #87608

    codingapple
    키 마스터
    넴 쓸 이유없으면 쓰지맙시다 
    파란빠는 position주고 main-container는 왼쪽마진 주면 될듯요
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 답변은 로그인 후 가능합니다.

About

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

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

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