간단한 반응형 폰트 설정 실전 팁
화면 크기에 따라 텍스트 크기가 너무 작거나 커져서 가독성이 깨짐.
html {
font-size: clamp(14px, 2vw, 18px);
}
clamp(최소값, 뷰포트기반중간값, 최대값)
예: 화면이 작으면 14px, 크면 18px까지 자동 조절
이 방법은 미디어쿼리 없이도 폰트 자동 스케일링이 되어 실무에서 매우 유용합니다.
html {
font-size: clamp(14px, 2vw, 18px);
}
clamp(최소값, 뷰포트기반중간값, 최대값)
예: 화면이 작으면 14px, 크면 18px까지 자동 조절
이 방법은 미디어쿼리 없이도 폰트 자동 스케일링이 되어 실무에서 매우 유용합니다.
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 118 | jQuery Mobile | 8년 전 | 1347 | ||
| 117 | jQuery Mobile | 8년 전 | 1597 | ||
| 116 | jQuery Mobile | 8년 전 | 1828 | ||
| 115 | jQuery Mobile | 8년 전 | 1783 | ||
| 114 | jQuery Mobile | 8년 전 | 1972 | ||
| 113 | jQuery Mobile | 8년 전 | 1882 | ||
| 112 | jQuery Mobile | 8년 전 | 2490 | ||
| 111 | jQuery Mobile | 8년 전 | 1795 | ||
| 110 | jQuery Mobile | 8년 전 | 1586 | ||
| 109 | jQuery Mobile | 8년 전 | 1749 | ||
| 108 | jQuery Mobile | 8년 전 | 1973 | ||
| 107 | jQuery Mobile | 8년 전 | 1773 | ||
| 106 | jQuery Mobile | 8년 전 | 1451 | ||
| 105 | jQuery Mobile | 8년 전 | 1753 | ||
| 104 | jQuery Mobile | 8년 전 | 2432 | ||
| 103 | jQuery Mobile | 8년 전 | 1564 | ||
| 102 | jQuery Mobile | 8년 전 | 1507 | ||
| 101 | jQuery Mobile | 8년 전 | 1701 | ||
| 100 | jQuery Mobile | 8년 전 | 1922 | ||
| 99 | jQuery Mobile | 8년 전 | 1383 | ||
| 98 | jQuery Mobile | 8년 전 | 1406 | ||
| 97 | jQuery Mobile | 8년 전 | 1660 | ||
| 96 | jQuery Mobile | 8년 전 | 1315 | ||
| 95 | jQuery Mobile | 8년 전 | 1128 | ||
| 94 | jQuery Mobile | 8년 전 | 1530 | ||
| 93 | jQuery Mobile | 8년 전 | 1149 | ||
| 92 | jQuery Mobile | 8년 전 | 1572 | ||
| 91 | jQuery Mobile | 8년 전 | 1522 | ||
| 90 | jQuery Mobile | 8년 전 | 1687 | ||
| 89 | jQuery Mobile | 8년 전 | 1668 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기