web-crash-course


Box Model / 박스 모델

.box {
  width: 300px;
  height: 300px;

  min-width: 200px;
  max-width: 400px;

  min-height: 200px;
  max-height: 400px;

  overflow: hidden;
  overflow-x: hidden;
  overflow-y: scroll;

  border-top: 10px solid #000000;
  border-right: 10px solid #000000;
  border-bottom: 10px solid #000000;
  border-left: 10px solid #000000;

  border-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;

  border-width: 10px;
  border-width: 10px 20px 5px 0px;
  border-top-width: 10px;
  border-right-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 10px;

  border-style: solid;
  border-style: solid dotted dashed double;
  border-top-style: groove;
  border-right-style: ridge;
  border-bottom-style: inset;
  border-left-style: outset;
  border-style: hidden;
  border-style: none;

  border-color: #000000;
  border-color: #000000 #ffffff #000000 #ffffff;
  border-top-color: #000000;
  border-right-color: #000000;
  border-bottom-color: #000000;
  border-left-color: #000000;

  border-image: url("border.png") 30 30 round;
  border-image: url("border.png") 30 30 round repeat;
  border-image: url("border.png") 30 30 round repeat fill;
  border-image: url("border.png") 30 30 round repeat fill / 30px 30px;
  border-image: url("border.png") 30 30 round repeat fill / 30px 30px
    content-box;
  border-image: url("border.png") 30 30 round repeat fill / 30px 30px
    content-box space;

  border: 10px solid #000000;

  border-collapse: collapse;
  border-collapse: separate;

  border-spacing: 10px;

  outline: 10px solid #000000;
  outline-offset: 10px;

  box-shadow: 10px 10px 10px #000000;
  box-shadow: 10px 10px 10px 10px #000000;
  box-shadow: 10px 10px 10px 10px #000000 inset;
  box-shadow: 10px 10px 10px 10px #000000 inset, 10px 10px 10px 10px #000000
      inset;

  padding: 20px;
  padding: 20px 40px 10px 0px;
  padding-top: 20px;
  padding-right: 40px;
  padding-bottom: 10px;
  padding-left: 0px;

  margin: 20px;
  margin: 20px 40px 10px 0px;
  margin-top: 20px;
  margin-right: 40px;
  margin-bottom: 10px;
  margin-left: 0px;

  display: block;
  display: inline;
  display: inline-block;
  display: none;

  visibility: visible;
  visibility: hidden;

  float: left;
  float: right;
  float: none;

  clear: left;
  clear: right;
  clear: both;

  position: static;
  position: relative;
  position: absolute;
  position: fixed;
  position: sticky;

  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;

  z-index: 10;
}