

Texto con CSS
FONT-FAMILY: fuente;
Define una clase de fuente. Ejemplos: FONT-FAMILY: Verdana, Tahoma; FONT-FAMILY: "fuente tal", Arial; Ejemplo: <Div Style="FONT-FAMILY: Tahoma"> Texto con la fuente Tahoma </div>
Otro ejemplo:
FONT-STYLE: NORMAL; /*Normal*/ FONT-STYLE: ITALIC; /* Cursiva */ FONT-STYLE: OBLIQUE; /* oblícua es casi idéntica a la cursiva */ <Div Style="FONT-STYLE: OBLIQUE"> Texto con estilo de fuente Oblicua </div>
Font-weight:
Define la intensidad del color del texto Ejemplos: font-weight: bold; font-weight: bolder; font-weight: 200; font-weight: light; font-weight: lighter; font-weight: normal;
font-weight: bold;
font-variant:
Reduce el tamaño de mayusculas font-variant: normal; font-variant: small-caps; Ejemplo completo en una pagina:
<html><head><title>Ejemplo</title> Font-color: Color de texto Ejemplos. div [font: bold 16px arial} o <div style="font: bold 16px arial;"> Texto Arial en negrita, con tamaño de 16 pixeles </div>
div {font-color: purple;}
p {color: purple;}
Ejemplos:
.primera { width:350; color: brown; font-size: 12px; font-weight: bold; font-style: oblique; font-family: system; text-align: center; text-transform: uppercase; } #segunda { font-size: 16px; color: #FF0000; font-weight: 700; font-style: normal; font-variant: normal; white-space: nowrap; font-family: Helvetica; text-align: justify; text-decoration: overline; text-transform: lowercase; } #tercera { color: green font-style: italic; font-size: 12px; font-weight: bold; white-space: nowrap; font-variant: small-caps; text-decoration: underline; text-transform: capitalize; font-family: Tahoma, "arial black"; } Los codigos se pueden poner en un archivo.css
Si es asi hay que insertar en la pagina
Los codigos se activan
|