<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
display: inline-block;
text-align: center;
width: 13px;
}
</style>
</head>
<body>
<script>
var i, j;
for(i=65; i<=69; i++)
{
for(j=69; j>=65; j--)
{
if(j > i)
document.write("<div></div>");
else
document.write("<div>"+String.fromCharCode(j)+"</div>");
}
document.write("<br>");
}
</script>
<p><strong>Note</strong>: In this example, the structure of the pattern is more important. So little <a href="/css" target="_blank">CSS</a> is added.</p>
</body>
</html>