1. 내부폰트 적용
@font-face {
font-family: "폰트명";
src: url(폰트파일.otf) format("truetype");
}
2. Flex container
.container {
display: flex;
flex-direction: row;
flex-direction: column;
flex-wrap: nowrap;
flex-wrap: wrap;
justify-content: flex-start;
justify-content: flex-end;
justify-content: center;
justify-content: space-around;
justify-content: space-between;
align-items: stretch;
align-items: flex-start;
align-items: flex-end;
align-items: center;
}
3. Flex item
.item {
flex: initial;
flex: none;
flex: 1;
align-self: center;
justify-self: center;
}
4. border
.box {
border: 2px solid red;
border-radius: 2px;
box-shadow: 2px 2px 2px black;
}
5. color
.colorBox {
color: rgba(255,255,255,0.5);
6. size
.sizeBox {
width: 100%; height:100%;
width: 100vw; height:100vh;
max-width: 40px; max-height:40px;
margin: 5px;
padding: 5px;
overflow: auto;
overflow: visible;
overflow: hidden;
}
7. image
.image {
background-image: url(이미지경로.png);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
background-size: cover;
8. position
.positionBox {
position: static;
position: relative;
position: absolute;
position: fixed;
z-index: 5;
}
9.pseudo class
.box:hover {
}
.box:link {
}
.box:visited {
}
.box:active {
}
.box:focus {
}
.box:nth-child(n) {
}
.transformer {
transform: scale() rotate() translate() skew();
transform-origin: center;
transition: 1s linear 0.3s
}
11. filter
.filterBox {
filter: blur() grayscale() drop-shadow();
}
12. text
.textBox {
text-align: center;
line-height: 20px;
text-decoration: underline;
text-shadow: 1px 1px 2px pink;
letter-spacing: 10px;
word-spacing: 10px;
}
@media (max-width: 1070px) {
}
@media (max-width: 770px) {
}