본문 바로가기

coding/css

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

 * e_pc

@media screen and

(min-width:960px) {

  /* 가로 기준 960px */

 

  /* common class */

.container {

  width:100%max-width:1200pxmax-width:75rem;

  height:auto;

  margin:auto;

}



/* ============================================ */

 

  #wrap {

    height:1200px;

    background-color#ffc;

  }

  #headBox {

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

    width:100%height:auto;

    background-color#333;

  }

 

  .headBox_innerwrap {

    height:60px;

    padding:8px 25pxpadding:0.5rem 1.5625rem;

    box-sizingborder-box;

  }



  h1 {

    float:left;

    width250pxheight45px;

    width15.625remheight2.8125rem;

    background-color#33b88f;

  }

  #navBox {

    float:right;

    width500pxheight30px;

    width31.25remheight1.875rem;

    margin-top:7px;

    background-color#fff;

  }

  .search_area {

    float:left;

    width50pxheight30px;

    width3.125remheight1.875rem;

    background-color#33b88f;

  }

  .gnb_area {

    float:right;

    width430pxheight30px;

    width26.875remheight1.875rem;

    background-color#33b88f;

  }

  /* viewBox ======================== */

  #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%max-width:1200pxheight:540px;

    margin:auto;

    background-color#33b88f;

  }

  .info_pc_area {

    float:left;

    width:33.333333%width:calc(100% / 3); height540pxheight:33.75rem;

  }

  .new_area {background-color#957de9;}

  .notice_area { background-color#95abe9;}

  .more_content { background-color#95d2e9;}

 

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

  #footBox {

    width:100%height:120px;

    background-color#333;

  }

  .footBox_innerwrap {

    height100%;

    background-color#ddd;

  }

}

/* @media screen and (min-width:960px) */