Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ASCADING
STYLE SHEETS ]
2.1
SELECTORES
Patrn
Aplicado a:
Eje m plo
Cualquier elemento
Elemento <e>
<e>
e f
<e>...<d>...<f/>...</d>...
</e>
e > f
<e>...<f>...</f>...</e>
e:first-child
<f><e></e>...</f>
e + f
...</e> <f>...<f>
e[miAtr]
<e miAtr="xxx".../>
e[miAtr="v"]
<e miAtr="v".../>
e[miAtr~="v"]
<e> si su atributo "miAtr" es una lista de valores separados por espacios y uno es
"v"
e[lang|="es"]
<e> si su atributo "lang" es una lista de valores separados por guiones y comienza
con "es"
e.miClase
<e class="miClase".../>
e#miId
<e id="miId".../>
a:link
Enlaces no visitados
N/D
a:visited
Enlaces visitados
N/D
e:active
<e> cuando es activado (tiempo entre que se pulsa un botn sobre l y se suelta)
N/D
e:hover
N/D
e:focus
N/D
e:lang(c)
N/D
e:first-line
N/D
N/D
e:before
N/D
e:after
N/D
e , f
N/D
NOTACIN
TIPOS DE MEDIOS
Patrn
De s cripcin
Nom bre
M e dio
a b
a seguido de b
all
( a b )
a y b agrupados
braille
[ a | b ]
aob
embossed
Impresoras braille
[ a || b ]
a o b o ambos
a?
a es opcional
handheld
a*
0 o varios a
a+
1 o varios a
projection
a {n, m}
screen
speech
tty
tv
Televisores
SINTAXIS
UNIDADES
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
1/8
5/11/2014
Porcentaje
No requiere unidad
#RRGGBB
#RGB
cm Centmetros
rgb(R,G,B)
mm Milmetros
in
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
2/8
5/11/2014
MODELO DE CAJAS
MRGENES
Propie dad
De s cripcin
margin-top
margin-right
margin-bottom
margin-left
Valore s
[ <longitud> | <porcentaje> |
auto ]
margin
[ <longitud> | <porcentaje> |
auto ]{1,4}
RELLENO
Propie dad
De s cripcin
Valore s
padding-top
padding-right
padding-bottom
padding-left
padding
BORDES
Propie dad
De s cripcin
Valore s
border-top-width
border-right-width
border-bottom-width
border-left-width
border-width
border-top-color
border-right-color
border-bottom-color
border-left-color
border-color
border-top-style
border-right-style
border-bottom-style
border-left-style
Estilo del borde superior, derecho, inferior o [ none | hidden | dotted | dashed | solid | double |
groove | ridge | inset | outset ]
izquierdo
border-style
border-top
border-right
border-bottom
border-left
border
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
3/8
5/11/2014
Propie dad
De s cripcin
Valore s
display
position
Esquema de posicionamiento
top
right
bottom
left
float
Posicionamiento flotante
clear
z-index
[ auto | <entero_con_signo> ]
direction
[ ltr | rtl ]
unicode-bidi
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
4/8
5/11/2014
De s cripcin
Valore s
width
Ancho
min-width
Ancho mnimo
[ <longitud> | <porcentaje> ]
max-width
Ancho mximo
height
Alto
min-height
Alto mnimo
[ <longitud> | <porcentaje> ]
max-height
Alto mximo
line-height
vertical-align
EFECTOS VISUALES
Propie dad
De s cripcin
Valore s
overflow
clip
visibility
De s cripcin
Valore s
[ normal | none | [ <texto> | <uri> | <contador> |
attr(X) | open-quote | close-quote | no-open-quote |
no-close-quote]+ ]
content
quotes
Especifica las marcas para indicar las citas [ [ <texto> <texto> ]+ | none ]
counter-reset
Inicializa un contador
counter-increment
Incrementa un contador
list-style-type
[ disc | circle | square | decimal | decimal-leadingEstilo aplicable a los marcadores visuales de zero | lower-roman | upper-roman | lower-greek |
lower-latin | upper-latin | armenian | georgian |
las listas
lower-alpha | upper-alpha | none ]
list-style-image
[ url("http://...") | none ]
list-style-position
[ inside | outside ]
list-style
COLORES Y FONDO
Propie dad
De s cripcin
Valore s
color
<color>
background-color
Color de fondo
[ <color> | transparent ]
background-image
Imagen de fondo
[ url(...) | none ]
background-repeat
[ scroll | fixed ]
background-position
background
[ <background-color> || <background-image> ||
<background-repeat> || <background-attachment> ||
<background-position> ]
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
5/8
5/11/2014
MEDIOS PAGINADOS
Propie dad
De s cripcin
Valore s
page-break-before
page-break-after
page-break-inside
[ avoid | auto ]
orphans
<entero>
widows
<entero>
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
6/8
5/11/2014
FUENTES
Propie dad
De s cripcin
Valore s
font-family
Familias de fuentes
[ [ <nombre-familia> | <familia-genrica> ] [,
<nombre-familia> | <familia-genrica> ]* ]
font-style
Estilo de la fuente
font-variant
font-weight
Intensidad de la fuente
font-size
Tamao de la fuente
[ [ xx-small | x-small | small | medium | large | xlarge | xx-large] | [larger | smaller] | <longitud> |
<porcentaje> ]
font
TEXTO
Propie dad
De s cripcin
Valore s
text-indent
text-align
text-decoration
letter-spacing
[ normal | <longitud> ]
word-spacing
[ normal | <longitud> ]
text-transform
white-space
TABLAS
Propie dad
De s cripcin
Valore s
caption-side
[ top | bottom ]
table-layout
[ auto | fixed ]
border-collapse
[ collapse | separate ]
border-spacing
<longitud> <longitud>?
empty-cells
[ show | hide ]
INTERFAZ DE USUARIO
Propie dad
De s cripcin
Valore s
cursor
Especifica el cursor
outline-width
<border-width>
outline-style
<border-style>
outline-color
[ <color> | invert ]
outline
speak-header
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
7/8
5/11/2014
(MIT
[MASSACHUSET T S I NST IT UT E
OF
TECHNOLOGY ]
, ERCIM [EUROPEAN
, Keio, Beihang), Todos los derechos reservados. Son aplicables las reglas de responsabilidad, marcas registradas, utilizacin de documentos y licencias de software. Las
interacciones con este sitio estn de acuerdo con nuestra declaracin de privacidad de usuarios y miembros.
AND
http://www.w3c.es/Divulgacion/GuiasReferencia/CSS21/
8/8