Sunday, 28 May 2017

Set Absolute Values in CSS

Absolute values are the fixed values that are used to specify the font size in a Web page. let's create a web page named absolute.html

<!doctype html>
<head>
<title>Set the font Size</title>
<style>
body{
font-size:medium;
}
</style>
</head>
<body>
<h1>Working with font-size property using Absolute values </h1>
<p>Set the different font size with the helps of absolute values:</p>
<li><p style="font-size:xx-small">xx-small</p></li>
<li><p style="font-size:x-small">x-small</p></li>
<li><p style="font-size:small">small</p></li>
<li><p style="font-size:medium">medium</p></li>
<li><p style="font-size:large">large</p></li>
<li><p style="font-size:x-large">x-large</p></li>
<li><p style="font-size:xx-large">xx-large</p></li>
</body>
</html>

We have used the absolute value, such as xx-small, x-small and medium, to specify the font size.

The Out put of above document:


No comments:

Post a Comment