Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
div {
  height: 80px;
  background-color: pink;
}
div.a {
  width: hypot(80px); /* 80px */
}
div.b {
  width: hypot(40px, 80px); /* 89,44px */
}
div.c {
  width: hypot(40px, 80px, 100px); /* 134,16px */
}
div.d {
  width: hypot(40px, 80px, 100px, 120px); /* 180px */
}
div.e {
  width: hypot(10%, 20%, 40%); /* 45,82% */
}
</style>
</head>
<body>
<h1>The hypot() Function</h1>
<h2>width: hypot(80px):</h2>
<div class="a">Hello World!</div>
<br>
<h2>width: hypot(40px, 80px):</h2>
<div class="b">Hello World!</div>
<br>
<h2>width: hypot(40px, 80px, 100px):</h2>
<div class="c">Hello World!</div>
<h2>width: hypot(40px, 80px, 100px, 120px):</h2>
<div class="d">Hello World!</div>