0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>In fact, not all properties are inherited in CSS. Inheritable properties mainly include the properties that determine the parameters of how text is displayed.</p>
1
<p>In fact, not all properties are inherited in CSS. Inheritable properties mainly include the properties that determine the parameters of how text is displayed.</p>
2
font-size, font-family, font-style, font-weight, color, text-align, text-transform, text-indent, line-height, letter-spacing, word-spacing, white-space, direction, and others.<p>The following are also inheritable properties: list-style, cursor, visibility, border-collapse, and several other properties. But they are used much less frequently.</p>
2
font-size, font-family, font-style, font-weight, color, text-align, text-transform, text-indent, line-height, letter-spacing, word-spacing, white-space, direction, and others.<p>The following are also inheritable properties: list-style, cursor, visibility, border-collapse, and several other properties. But they are used much less frequently.</p>
3
<p>Inheritable properties can and should be set through the parent elements in accordance with the document structure.</p>
3
<p>Inheritable properties can and should be set through the parent elements in accordance with the document structure.</p>
4
<p>For example, text parameters are often not changed inside of the major blocks on the page, such as the menu, main content, and information bars. Therefore, the general text parameters (color, size, and typeface) are usually indicated in the styles of these major blocks.</p>
4
<p>For example, text parameters are often not changed inside of the major blocks on the page, such as the menu, main content, and information bars. Therefore, the general text parameters (color, size, and typeface) are usually indicated in the styles of these major blocks.</p>
5
<p>Let’s check whether a couple of properties were properly inherited, and at the same time let’s make the blog texts more “airy” and make them easier to read.</p>
5
<p>Let’s check whether a couple of properties were properly inherited, and at the same time let’s make the blog texts more “airy” and make them easier to read.</p>
6
<p>You can find the entire list of inheritable properties in the<a>CSS standard</a>. If yes is marked next to the property in the Inherited? column, then the property is inherited by default, unless explicitly declared to be different. If you want a normally non-inherited property inherit, you can do property: inherit.</p>
6
<p>You can find the entire list of inheritable properties in the<a>CSS standard</a>. If yes is marked next to the property in the Inherited? column, then the property is inherited by default, unless explicitly declared to be different. If you want a normally non-inherited property inherit, you can do property: inherit.</p>