CSS: Text, Fonts, and Tables - How to Set the Boldness of a Font
(Page 5 of 6 )
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
<html>
<head>
<style type="text/css">
p
{
font: italic small-caps 900 40px impact
}
</style>
</head>
<body>
<p>Attack of the Giant Midgets!</p>
</body>
</html>

Next: Tables in CSS >>
More Style Sheets Articles
More By James Payne