컴퓨터 정보/css
초기 CSS 셋팅 하기
혜닝혜루
2023. 4. 20. 16:54
728x90
반응형
📙 CSS를 작업하다보면 자주 사용하는 값이 있는데 초기에 미리 셋팅을 해주면서 CSS를 더 간편하게 작성할 수 있다.
@font-face {
font-family: 'NEXON Lv1 Gothic OTF';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff');
font-weight: normal;
font-style: normal;
}
/* Reset Css */
*{
box-sizing: border-box;
}
a ,Link{
text-decoration: none;
color:#222;
}
button, input{
outline: none;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0;
font-weight: normal;
line-height: 1.5em;
}
/* Default Css */
body{
font-family: 'NEXON Lv1 Gothic OTF',sans-serif;
font-size: 18px;
line-height: 1.7em;
margin:0;
background-color: #fff;
clear: #222;
}
728x90