간단한 반응형 폰트 설정 실전 팁
화면 크기에 따라 텍스트 크기가 너무 작거나 커져서 가독성이 깨짐.
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년 전 | 1594 | ||
| 116 | jQuery Mobile | 8년 전 | 1825 | ||
| 115 | jQuery Mobile | 8년 전 | 1780 | ||
| 114 | jQuery Mobile | 8년 전 | 1969 | ||
| 113 | jQuery Mobile | 8년 전 | 1879 | ||
| 112 | jQuery Mobile | 8년 전 | 2486 | ||
| 111 | jQuery Mobile | 8년 전 | 1792 | ||
| 110 | jQuery Mobile | 8년 전 | 1583 | ||
| 109 | jQuery Mobile | 8년 전 | 1744 | ||
| 108 | jQuery Mobile | 8년 전 | 1969 | ||
| 107 | jQuery Mobile | 8년 전 | 1772 | ||
| 106 | jQuery Mobile | 8년 전 | 1450 | ||
| 105 | jQuery Mobile | 8년 전 | 1747 | ||
| 104 | jQuery Mobile | 8년 전 | 2424 | ||
| 103 | jQuery Mobile | 8년 전 | 1562 | ||
| 102 | jQuery Mobile | 8년 전 | 1504 | ||
| 101 | jQuery Mobile | 8년 전 | 1696 | ||
| 100 | jQuery Mobile | 8년 전 | 1922 | ||
| 99 | jQuery Mobile | 8년 전 | 1375 | ||
| 98 | jQuery Mobile | 8년 전 | 1398 | ||
| 97 | jQuery Mobile | 8년 전 | 1658 | ||
| 96 | jQuery Mobile | 8년 전 | 1310 | ||
| 95 | jQuery Mobile | 8년 전 | 1127 | ||
| 94 | jQuery Mobile | 8년 전 | 1528 | ||
| 93 | jQuery Mobile | 8년 전 | 1147 | ||
| 92 | jQuery Mobile | 8년 전 | 1570 | ||
| 91 | jQuery Mobile | 8년 전 | 1516 | ||
| 90 | jQuery Mobile | 8년 전 | 1681 | ||
| 89 | jQuery Mobile | 8년 전 | 1668 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기