Catatan: Terjemahan untuk entri ini sedang dalam peninjauan kualitas, sehingga sebagian konten untuk sementara hanya ditampilkan dalam bahasa Inggris.
Entri ini belum diterjemahkan ke bahasa Anda, sehingga versi aslinya ditampilkan di bawah.
em
In modern digital typography and CSS, this unit is relative rather than fixed. It scales based on the font size of the element it is applied to, making it essential for creating responsive layouts that maintain proportional spacing across different screen sizes.
Because it is a technical unit of measurement, it is typically used in professional design and programming contexts. It is distinct from the "rem" (root em), which refers specifically to the font size of the root element of a document.
Meanings
Examples
I need to add a half em space between these two characters.
Using em units makes the layout more flexible across different screen sizes.
The designer suggested an em quad to create a wider gap.
Why is the padding set to 1.5em instead of pixels?
The text looks too cramped so I will increase the spacing by one em.
He adjusted the font size and noticed the em width changed proportionally.
The CSS file defines the base font size and uses em for all relative measurements.