<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
display: inline-block;
text-align: center;
width: 15px;
}
</style>
</head>
<body>
<script>
var i, j, k = 69;
for(i=k; i>=65; i--)
{
for(j=k; j>=65; j--)
{
if(j > i)
document.write("<div>"+String.fromCharCode(j)+"</div>");
else
document.write("<div>"+String.fromCharCode(i)+"</div>");
}
for(j=66; j<=k; j++)
{
if(j > i)
document.write("<div>"+String.fromCharCode(j)+"</div>");
else
document.write("<div>"+String.fromCharCode(i)+"</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>