Curso de HTML/Introdução: diferenças entre revisões

[edição verificada][edição verificada]
Conteúdo apagado Conteúdo adicionado
Guiwp (discussão | contribs)
Guiwp (discussão | contribs)
Linha 762:
 
== Os elementos do HTML/Usando seletores em elementos HTML ==
 
 
=== CSS - Cascading Style Sheet ===
Linha 782 ⟶ 783:
* Facilidade de manutenção;
* Otimização de tempo de carregamento da página.
 
== Atributos CSS e seus efeitos ==
 
{| class="wikitable"
|-
!Nome
!Valor
!Valor inicial
!Se aplica a (Padrão: todos)
!Herdado?
!Percentagens (Default: N/A)
|Grupo de Mídias
|-
|background-attachment
|<nowiki>scroll | fixed | inherit</nowiki>
|scroll
|
|no
|
|visual
|-
|background-color
|<nowiki><color> | transparent | inherit</nowiki>
|transparent
|
|no
|
|visual
|-
|background-image
|<nowiki><uri> | none | inherit</nowiki>
|none
|
|no
|
|visual
|-
|background-position
|<nowiki>[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit</nowiki>
|0% 0%
|
|no
|refer to the size of the box itself
|visual
|-
|background-repeat
|<nowiki>repeat | repeat-x | repeat-y | no-repeat | inherit</nowiki>
|repeat
|
|no
|
|visual
|-
|background
|<nowiki>['background-color' || 'background-image' || 'background-repeat' || 'background-attachment' || 'background-position'] | inherit</nowiki>
|see individual properties
|
|no
|allowed on 'background-position'
|visual
|-
|}
 
=== Sintaxe CSS ===