There are probably other, more interesting style sheets that affect the situation. Your real problem might be different – you seem to be looking at the part of style sheets that constitute a browser style sheet. What the other answers have failed to say is why you’d need this. Max Yaskov at 22:21 Add a comment 7 Answers Sorted by: 46 Like the other answers have said, it’s to inherit a CSS property from the parent element. If you don’t set fonts at all, browsers defaults will be used. 1,143 5 15 32 font: inherit is incorrect syntax according to CSS Fonts Module Level 3. If there is a continuous chain of elements (in the sense of parent-child relationships) from the root element to the current element, all with font-family set to inherit or not set at all in any style sheet (which also causes inheritance), then the font is the browser default. This means that the browser’s default font family is used. The font-family property is special in the sense that the initial value is not fixed in the specification but defined to be browser-dependent. The initial value is defined for each property in CSS specifications. For the root element (in HTML documents, for the html element) there is no parent element by definition, the value used is the initial value of the property. The inherit value, when used, means that the value of the property is set to the value of the same property of the parent element.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |