Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
O CSS uma "folha de estilo" composta por camadas e utilizada para definir a
aparncia (formatao) em pginas HTML.
A sua maior vantagem efetuar a separao entre o formato e o contedo de um
documento.
#teste{
Elemento especfico (id)
}
</style>
Externo:
Criaode um arquivo separado apenas com os estilos css e lincado na
pgina html como segue exemplo abaixo, dentro da tag de cabealho
<head></head>:
<link
rel="stylesheet"
href="teste.css"
type="text/css" />
Propriedade font-family
Prof. Jeany Laranjeira
Pgina 1 de 9
Propriedade font-size
font-size: xx-small | x-small | medium | large | x-large | xx-large
Ainda possvel determinar o seu valor empxou%.
Propriedade font-style
font-style:
Propriedade font-weight
font-weight:
700 | 800 | 900
normal | bold | border | lighter | 100 | 200 | 300 | 400 | 500 | 600 |
Propriedadefont-variant
Prof. Jeany Laranjeira
Pgina 2 de 9
Propriedade font
Agrupamento das propriedades font.
Exemplo:
font: 24px small-caps oblique bold arial, sans-serif;
Propriedade text-align
text-align: left | right | center | justify
Propriedade vertical-align
Vertical-align: baseline | bottom | top | middle | text-bottom | text-top | sub |
super | %
Baseline linha de base bottom parte inferior
centro
text-bottom parte inferior do texto
sub subscrito
super sobrescrito
Propriedade text-decoration
Prof. Jeany Laranjeira
Pgina 3 de 9
Middle
line-through riscado
Propriedade text-transform
Text-transform: captalize | uppercase |
lowercase | none
uppercase letra
Pgina 4 de 9
no-
Propriedade background-position
Background-position:top | center | bottom || left | center | right
vertical
horizontal
Propriedade background
Agrupamento das propriedades background.
Exemplo:
Background: red url(image.jpg) fixed repeat center;
Propriedade margin
margin-top: 10px;
Prof. Jeany Laranjeira
Pgina 5 de 9
Propriedade border:
border-style: none | dotted | dashed | solid | double | groove | ridge | inset |
outset
border-color: definir a cor;
border -width: medium | thin | thick |10px (largura da borda);
border-radius: 10% | 10px | arredondamento | valor em % oupx
Outras propriedade das bordas:
border-top
border-topstyle
border-topcolor
border-topwidth
border-bottom
border-bottomstyle
border-bottomcolor
border-bottomwidth
border-left
border-left-style
border-left-color
border-left-width
border-right
border-right-style
border-right-color
border-right-width
Propriedade position
position: relative | absolute
Prof. Jeany Laranjeira
Pgina 6 de 9
list-style-image:
none
URL: url(caminho/marcador.gif)
Pgina 7 de 9
list-style-type:
none: sem marcador
disc: crculo (bolinha cheia)
circle: circunferncia (bolinha vazia)
square: quadrado cheio
Pgina 8 de 9