subject: CSS coding: How To Style Your Text With CSS [print this page] Styling text with CSS is really simpleStyling text with CSS is really simple. We can define colors, underline it, make it bold, define the font etc etc.
We will start with some basics.
First we define the html where we will be working with.
We can select the P tag and add some styles to it.
p {
color:red;
}
Now our text will turn red. You can define any color code your want or choose one of the 16 standard color names. The color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow.
2. Define the size of your text
p {
font-size:12px;
}
You can define any font-size you want, 145 pixels is not a problem. That is, technically speaking.
3. Make the text bold or Italic
You can use the font-style property to create these effects.