본문 바로가기

coding/css

0609 / responsive web design (rwd) 반응형웹 (tablet)

* d_tablet

@media screen and (min-width:768px) and (max-width:959px) {

  #wrap {

    height700px;

    background-color#fcf;

  }

  #headBox {

    position:fixedtop:0left:0z-index:1500;

    width:100%height:60pxheight:3.75rem;

    background-color#333;

  }

  .headBox_innerwrap {

    width:100%height:auto;

    padding:10px 1rembox-sizingborder-box;

  }

 

  h1 {

    float:left;

    width174pxheight42px;

    background-color#33b88f;

  }

  #navBox {

    float:right;

    width94pxheight40px;

    background-color#fff;

  }

  .search_area {

    float:left;

    width36pxheight40px;

    background-color#33b88f;

  }

  .gnb_area {

    float:right;

    width45pxheight40px;

    background-color#33b88f;

  }

 

  #viewBox {

    width:100%height:450pxheight:28.125rem;

    padding-top:60pxpadding-top:3.75rem;

    background-color#bbaa77;

  }

  .viewBox_innerwrap { height:100%; }

 

  .view_area { 

    width:100%height100%;

    padding:1rem;

    box-sizing:border-box;

    background-color#ccf

  }

  .view_guide {

    width100%height100%;

    border:1px solid #333;

    box-sizing:border-box;

    overflow-x:auto;

    /* overflow:hidden; */

  }

  .view_inner {

    width100%;

    height100%;

  }

  .view_inner > li {

    floatleft;

    width100%;

    width:calc(100% / 7);

    height100%;

  }

  .view_inner > li:nth-child(1) {background-colorrgb(43,88,188);}

  .view_inner > li:nth-child(2) {background-colorrgb(168,38,7);}

  .view_inner > li:nth-child(3) {background-colorrgb(133,50,17);}

  .view_inner > li:nth-child(4) {background-colorrgb(95,22,125);}

  .view_inner > li:nth-child(5) {background-colorrgb(110,137,13);}

  .view_inner > li:nth-child(6) {background-colorrgb(118,255,17);}

  .view_inner > li:nth-child(7) {background-colorrgb(227,183,38);}





  /* contentBox : 공통영역에 통합처리 ========================== */

 

  

  /* infoBox ============================== */

  #infoBox {

    width:100%height:auto;

    background-color#33b88f;

  }

  .info_table_area {

    float:left;

    width:50%height540pxheight:33.75remheight:70.3125vw;

  }

  .new_area {background-color#957de9;}

  .notice_area { background-color#95abe9;}

  .more_content { display:none;}

 

  /* footBox ============================= */

  #footBox {

    width:100%height:120px;

    background-color#333;

  }

}

/* @media screen and (min-width:768px) and (max-width:959px) */