본문 바로가기

coding/css

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

* c_smartphone_horizontal

@media screen and 

(min-width:480px) and 

(max-width:767px) {

  /* 가로 기준 480px */

 

  #wrap {

    height900pxheight:56.25rem;

    background-color#aca;

  }

  #headBox {

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

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

    /* padding:10px 1rem; box-sizing: border-box; */

    background-color#333;

  }

  .headBox_innerwrap {

    width:100%height:auto;

    

  }

    h1 {

      float:left;

      width126pxheight30px;

      background-color#33b88f;

    }

    #navBox {

      float:right;

      width90pxheight40px;

      background-color#fff;

    }

    .search_area {

      float:left;

      width36pxheight40px;

      background-color#33b88f;

    }

    .gnb_area {

      float:right;

      width45pxheight40px;

      background-color#33b88f;

    }

  

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

    #viewBox {

      width100%;

      height720pxheight:45remheight:150vw

      padding-top:3.75rem

      background-color#bbaa77;

    }

    .indicator { display:none; }

    

    .view_area { 

      padding138px 40px 65px;

      padding8.625rem 2.5rem 4.0625rem;

      padding28.75vw 8.333333vw 12.5vw;

      box-sizing:border-box;

    }

  

    .view_guide {

      width100%height100%;

      border:1px solid #333;

      box-sizingborder-box;

      overflow-y:auto;

    }

  

    .view_inner {

      width100%heightauto

    }

    .view_inner > li {

      width100vw;

      height90px

      height:5.625rem

      height:18.75vw;

      margin-bottom:30px;

      margin-bottom:1.875rem;

      margin-bottom:6.25vw;

      background-color#fff;

    }

    .view_inner > li:last-child {

      margin-bottom:0;

    }

    /* contentBox ==================== */

  #contentBox {

    height:autox;

  }

  .content_area {

    height:automin-height:50rem;

  }



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

  #infoBox {

    width:100%height:720px;

    height:45remheight:150vw;

    background-color#33b88f;

  }

  .new_area {

    width100%height720px;

    height45remheight150vw;

    background-color#957de9;

  }

  

  .notice_area,

  .more_content { display:none;}

 

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

  #footBox {

    width:100%height:60px;

    background-color#333;

  }

}

/* @media screen and  (min-width:480px) and (max-width:767px) */