css text styles code example
Example 1: css text
text-align: center, right, left, justify, start, end;
font-weight: lighter, 100, normal, 400, bold, 700, bolder, 900;
text-decoration: wavy, dashed, dotted, double, solid, underline, line-through, overline;
text-decoration: underline red;
line-height: normal;
letter-spacing: 2;
font-size: 100px;
font-family: 'Courier New', Courier, monospace;
Example 2: text color css
.YourClass {
color: #ff0000;
}
Example 3: html css text style on a word
<p style="font-size:14px; color:#538b01; font-weight:bold; font-style:italic;">
Enter the competition by
<span style="color: #ff0000">January 30, 2011</span>
and you could win up to $$$$ — including amazing
<span style="color: #0000a0">summer</span>
trips!
</p>
Example 4: html css text style on a word
p {
font-size:14px;
color:#538b01;
font-weight:bold;
font-style:italic;
}
mark.red {
color:#ff0000;
background: none;
}
mark.blue {
color:#0000A0;
background: none;
}