본문 바로가기
HTML

웹 폰트 사용하기

by chaechaekim 2019. 7. 29.
<!DOCTYPE html>

 <html lang="ko">
<head>
	<meta charset="utf-8">
	<title>웹 폰트 사용하기</title>
	<link href="https://fonts.googleapis.com/css?family=Geostar&display=swap" rel="stylesheet">
	<style>
	  @font-face {
		font-family: 'Geostar', cursive;
		}
	   .w-font {
	     font-family: 'Geostar', cursive;
	   }
	   p {
		 font-size:30px;
	   }
	   div {
			width:500px;
			height:300px;
			border-radius:10px;
	   }
	   .grad {
	   		background: yellow;
			background: -webkit-linear-graient(left top, red, white);
			background: -moz-linear-graient(right bottom, red, white);
			background: linear-graient(to right bottom, red, white);
	   }
	 </style>

</head>
<body>
  <div class="grad">
  <p> Jimin</p>
  <p class="w-font"> Jimin </p>
</body>
</html>

'HTML' 카테고리의 다른 글

연산자  (0) 2019.07.31
화면에 출력  (0) 2019.07.31
내부 스타일 시트  (0) 2019.07.29
표에 사진 넣기  (0) 2019.07.24
테이블 2  (0) 2019.07.24

댓글