Em
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://fontfyi.com/iframe/glossary/em/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://fontfyi.com/glossary/em/
Add a dynamic SVG badge to your README or docs.
[](https://fontfyi.com/glossary/em/)
Use the native HTML custom element.
A typographic unit equal to the current font size. In CSS, 1em = the parent element's font size. The basis for relative sizing.
The em is a typographic unit of measurement equal to the current font size. If an element's font size is 16px, then 1em equals 16px in that context. If the font size changes to 24px, 1em becomes 24px. This proportional relationship is what makes em units powerful — they scale automatically with the text they're associated with.
The name comes from the width of the uppercase letter 'M' in traditional metal type, which was historically the widest character and used as a reference square. In modern typography, the em is defined purely as a unit equal to the current font size, regardless of any actual letter dimensions.
/* em values scale with the inherited font-size */
.parent {
font-size: 16px;
}
.child {
font-size: 1.25em; /* 1.25 × 16px = 20px */
padding: 1em; /* 1 × 20px = 20px — scales with THIS element's font-size */
margin-bottom: 1.5em; /* 1.5 × 20px = 30px */
}
/* The key difference from rem (root em) */
html {
font-size: 16px;
}
.card {
font-size: 0.875rem; /* 14px — relative to root */
padding: 1em; /* 14px — relative to this element's font-size */
border-radius: 0.5rem; /* 8px — always relative to root */
}
/* Em units for letter-spacing are best practice */
h1 {
font-size: 3rem;
letter-spacing: -0.02em; /* -0.02 × 48px = -0.96px — scales correctly */
}
/* vs. pixel-based letter-spacing that breaks at different sizes */
h1.broken {
letter-spacing: -1px; /* Fixed — won't scale if font-size changes */
}
Understanding the distinction between em and rem is critical. em is relative to the current element's font-size (or the nearest parent's font-size, when used for font-size itself). rem is always relative to the root element's font-size (html). This means em units can compound — a child inside a child can have a surprisingly small or large value — while rem values are always predictable.
For typography specifically, em units shine for letter-spacing, line-height, and spacing properties (padding, margin) that should scale proportionally with text. When you want consistent ratios that hold across type sizes, em is the right tool. Google Fonts documentation and most modern design systems document spacing in em values for exactly this reason.
관련 용어
관련 도구
이 개념을 보여주는 폰트
더 알아보기
폰트 크기에 px를 사용하면 시각 장애가 있는 사용자의 브라우저 확대 기능이 깨집니다. rem이 왜 필수적이며 어떻게 올바르게 구현하는지 다룹니다.
CSS 타이포그래피영원한 CSS 단위 질문에 명쾌하게 답합니다. 폰트 크기, 간격, 반응형 디자인에서 px, rem, em을 언제 써야 하는지 다룹니다.
CSS 타이포그래피CSS clamp()를 사용해 뷰포트 크기 사이를 부드럽게 조절하는 반응형 타이포그래피를 만듭니다. 브레이크포인트도, 미디어 쿼리도 없이 단 한 줄의 CSS로 가능합니다.
타이포그래피 기초자간 조절의 세 가지 축 — 커닝(글자 쌍), 트래킹(전체 자간), 리딩(줄 간격)입니다. 작은 조정이 큰 차이를 만듭니다.