Loading Dev Articles Topics...
Loading Forum Links...
Loading Dev Shed Topics...
Loading ASP Free Topics...
Loading SEO Topics...
...
We last left off discussing text in CSS. In this article we will finish this discussion, and cover how to manipulate fonts as well. And if time permits, we will also go over tables in CSS. It's a lot of ground to cover, so let's jump right in.
You can set the amount of boldness of a font using font-weight. Here is how:
<html>
<head>
<style type="text/css">
p.normal {font-weight: normal}
p.thick {font-weight: bold}
p.thicker {font-weight: 900}
</style>
</head>
<body>
<p class="normal">I'm pretty open-minded</p>
<p class="thick">I'm thick headed.</p>
<p class="thicker">I'm thick headed...er.</p>
</body>
</html>
And lastly:
Setting All of the Font Properties
p
{
font: italic small-caps 900 40px impact
}
<p>Attack of the Giant Midgets!</p>