Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- aws
- css기초
- CSMA/CD
- 무한스크롤
- JavaScript
- Arrays
- cookie
- 카카오로그인
- JWT기본원리
- @
- sessionStorage
- GitClone
- 개발블로그 만들기
- 영어 Frontend Article 읽고 요약하기 #6
- localStorage
- 데코레이터
- stash
- git stash
- google font
- github
- 링크이동
- ssh접속오류
- HTML
- 네트워크
- 소셜로그인
- vscode
- Decorator
- hub
- EC2 is why EC2?
- AWS 가입하기
Archives
- Today
- Total
바다는 비에 젖지 않는다
[CSS] 웹페이지에 Google font 이용하기 본문
728x90
https://fonts.google.com/?subset=korean
Google Fonts
Making the web more beautiful, fast, and open through great typography
fonts.google.com
- 폰트 선택하기

2. 선택 한 폰트 페이지에서 스크롤을 내려 style에서 thin, regular, bold 중 선택한다.

3. 선택 후 오른쪽 위 view selected families 누른다.

4. link 태그를 복사해서 <head> ~ </head>사이에, CSS를 복사해서 <style> ~ </style> 사이에 넣는다.

5. 폰트가 적용된 페이지

코드
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="https://fonts.googleapis.com/css2?family=Nanum+Brush+Script&display=swap" rel="stylesheet">
<style>
*{
font-family: 'Nanum Brush Script', cursive;
}
.mytitle{
height: 200px;
width: 300px;
background-image: url("https://post-phinf.pstatic.net/MjAyMDAyMjlfMjY4/MDAxNTgyOTU0Nzg3MjQ4.PBMFV4WrSJmeSUJ56c4C7Vkz_SsQlJ1SByKU18kkJh0g.T7mQnadCWVtEZ448AGk_9kG1HFBAzdztXZcBjvSbduwg.JPEG/고양이_나이1.jpg?type=w1200");
background-size: cover;
background-position: center;
border-radius: 10px;
padding-top: 20px;
text-align: center;
color: yellow;
}
.wrap{
width: 300px;
margin: auto;
background-color: green;
}
</style>
<link rel="stylesheet" href="../../../Hanghae99/Frontend/prac.css">
</head>
<body>
<div class="wrap">
<div class="mytitle">
<h1>로그인 페이지</h1>
<h4>아이디, 비밀번호를 입력해주세요</h4>
</div>
<p>ID: <input type="text"/></p>
<p>PW: <input type="text"/></p>
<button>로그인 하기</button>
</div>
</body>
</html>
728x90
'IT Technical Note > HTML | CSS' 카테고리의 다른 글
| [CSS] Flexbox (0) | 2022.10.07 |
|---|---|
| [CSS] Bootstrap (0) | 2022.10.07 |
| [CSS] margin을 이용한 중앙정렬 (0) | 2022.10.07 |
| [CSS] CSS기초 (0) | 2022.10.07 |
| [HTML] HTML 기본 개념 (0) | 2022.10.07 |