Estilos para a cor do texto e fondo


Atributos Valores Explicación Exemplos
color cor cor do texto color:red;
background-color cor cor de fondo do texto background-color: #FFDAB9;
background-image url(imaxe) imaxe de fondo background-image: url(imaxes/fondo.jpg);
  none ningunha imaxe de fondo background-image: none;
background-repeat repeat-x repite a imaxe horizonalmente background-repeat: repeat-x;
  repeat-y repite a imaxe horizontalmente background-repeat: repeat-y;
  repeat repite a imaxe tanto vertical como horizontalmente. Valor por defecto background-repeat: repeat;
  no-repeat non repite a imaxe nin horizontal nin verticalmente background-repeat: no-repeat;
background-attachment scroll a imaxe desprazase co texto background-attachment: scroll;
  fixed a imaxe permanece fixa background-attachment: fixed;
background-position top fondo na parte superior background-position:top;
  left fondo na parte esquerda background-position:left;
  right fondo na parte dereita background-position:right;
  bottom fondo na parte inferior background-position:bottom;
  center fondo centrado fbackground-position:center;
  px,% fondo nunha posición absoluta ou relativa font-variant:small-caps;

Anterior Seguinte