Академический Документы
Профессиональный Документы
Культура Документы
Continuao
A propriedade 'background-color'
A propriedade background-color define a cor do
fundo de um elemento.
Ex: body {
background-color: red }
h1 { color: blue; background-color: green; }
O elemento <body> contm todo o contedo de
um documento HTML
Exemplo
body {
background-color: red;
background-image: url("butterfly.gif");
}
h1 {
color: blue;
background-color: green;
}
Isto significa que a imagem est localizada no
mesmo diretrio da folha de estilos.
Para outro directorio seria;
url("../images/butterfly.gif")
background-repeat:
repeat-y
background-repeat:
repeat
background-repeat: norepeat
A imagem no se repete
Descrio
Background-attachment: scroll
Background-attachment: fixed
A imagem fixa
body {
background-color: white;
background-image: url("butterfly.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right bottom;
}
h1 {
color: green;
background-color: brown;
}
Famlias genricas
Famlias genricas so fontes que
pertencem a um grupo com aparncia
uniforme.
Um exemplo so as fontes sans-serif que
englobam a coleo de fontes.
h1 { font-family: arial, verdana, sansserif; }
h2 { font-family: "Times New Roman", serif;
}
h1 { font-variant: small-caps; }
h2 { font-variant: normal;
}
END