Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div {
  height: 80px;
  background-color: pink;
}
div.a {
  width: calc(log(50, 10) * 30px);
}
div.b {
  width: calc(log(500) * 30px);
}
div.c {
  width:  calc(log(1000) * 30px);
}
div.d {
  width:  calc(log(10000, 10) * 30px);
}
div.e {
  width:  calc(log(50000, 10) * 30px);
}
</style>
</head>
<body>
<h1>The log() Function</h1>
<h2>width: calc(log(50, 10) * 30px):</h2>
<div class="a">Hello World!</div>
<br>
<h2>width: calc(log(500, 10) * 30px):</h2>
<div class="b">Hello World!</div>
<br>
<h2>width: calc(log(1000, 10) * 30px):</h2>
<div class="c">Hello World!</div>
<h2>width: calc(log(10000, 10) * 30px):</h2>
<div class="d">Hello World!</div>