Свойство CSS: font-size

Размер шрифта.

Размер шрифта также может быть указан как часть font свойства shorthand.

Возможные значения

[длина]

Значение: [длина].
Примечание: когда используются единицы измерения em или ex, размер шрифта вычисляется по отношению к размеру шрифта содержащего поля. Значение не должно быть отрицательным.
Пример: 12px.

[в процентах]

Значение: [в процентах].
Примечание: рассчитывается как процент от размера шрифта содержащего поля. Не должно быть отрицательным значением.
Пример: 150%.

larger

Значение: larger.
Примечание: больше, чем унаследованный размер шрифта.

smaller

Значение: smaller.
Примечание: меньше, чем унаследованный размер шрифта.

xx-small

Значение: xx-small
Примечание: очень, очень маленький.

x-small

Значение: x-small.
Примечание: очень маленький.

small

Значение: small.
Примечание: меньше, чем medium.

medium

Значение: medium.
Примечание: стандартное среднее значение ссылки.

large

Значение: large.
Примечание: больше, чем medium.

x-large

Значение: x-large.
Примечание: очень большой.

xx-large

Значение: xx-large.
Примечание: очень, ОЧЕНЬ большой.

inherit

Значение: inherit.

initial

Значение: initial.

unset

Значение: unset.

Пример

p { font-size: 16px; }

Страницы в тему:

Все свойства CSS

all background background-attachment background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow caption-side clear clip color content counter-increment counter-reset cursor direction display empty-cells float font font-family font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-weight height left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width min-height min-width opacity orphans outline outline-color outline-style outline-width overflow padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside position quotes right table-layout text-align text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-transform top transform transform-origin transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space widows width word-spacing z-index

Добавить комментарий