Valor Especifícado
O valor especificado de uma propriedade CSS está definido em uma de três maneiras.
- If the document's stylesheet has specified a value for the property then it will be used. For example; if the
color
property is set togreen
then the text color of the corresponding element will be green. - If the document's stylesheet has not specified a value then it will be inherited form the parent element (if possible). For example; if we have a paragraph (
<p>
) inside a<div>
and the<div>
has a CSSfont
property value of "Arial" and the<p>
doesn't have afont
property defined then it will inherit the Arial font. - If none of the above are available, the initial value for the element as specified by the CSS specification is applied.
Especificações
Specification |
---|
Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification # specified-value |