본문 바로가기

CSS

CSS 기본구조,폰트

<style>
	h1{
    	color : red;
        }
</style>

폰트크기 : font-size

폰트두께 : font-weight

어떤 폰트를 사용 할지 : font-family

폰트의 모양이 normal 또는 italic 또는 oblique인지  : font-style

<style>
	h2{
		font-size: 50px;
        font-weight: 100;
        font-family:fantasy;
        font-style: italic;
      }
        
       p{
       		font-size: 25px;
            font-weight: bold;
            font-family:궁서 ;
        }
</style>

'CSS' 카테고리의 다른 글

margin  (0) 2023.10.12
결합(계층)선택자  (0) 2023.10.12
display  (0) 2023.10.12
반응 선택자,크기단위 선택자  (0) 2023.10.12
선택자  (0) 2023.10.11