Impostazioni del testo



Colore del testo - esempio codice CSS

body {
 color: blue;
}

h1 { color: green; }



Allineamento del testo - esempio codice CSS

h1 {
 text-align: center;
}

h2 { text-align: left; }

h3 { text-align: right; }

div { text-align: justify; }



Scelta font - esempio codice CSS

p {
 font-family: "Times New Roman", Times, serif;
}


Stile font - esempio codice CSS

p.normal {
 font-style: normal;
}

p.italic { font-style: italic; }

p.oblique { font-style: oblique; }



Grandezza font - esempio codice CSS

h1 {
 font-size: 40px;
}

h2 { font-size: 30px; }

p { font-size: 14px; }