<!DOCTYPE html>
<html>
<head>
<title>Algoranker</title>
<style type="text/css">
div.top{
width:100%;
height:10%;
text-align: center;
color: white;
background-color: #474747;
}
p{
margin-top: 0px;
}
html,body{
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body >
<div class="top" >
<p>Testing</p>
</div>
</body>
</html>
How to i make the Testing text in p tag to vary according to screen resolution i tried using font-size:10%, but not changing, any one suggest me a method