This font is 1.2 smaller than the default size, or pixels.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
<head>
<title>font-size</title>
<style rel='stylesheet' type='text/css'>
body {
font-size: medium;
}
p#smaller {
font-size: smaller;
}
p#smaller span {
font-size: 12px;
}
span {
background: mistyrose;
}
</style>
</head>
<body>
<p id='smaller'>
This font is 1.2 smaller than the default size, or pixels.
<span>this is a test. </span>
</p>
</body>
</html>
Related examples in the same category