Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Reference: green box with full red ring 150px away</title>
<style>
body { margin: 0; }
#box { position: absolute; left: 275px; top: 225px;
width: 50px; height: 50px; background: green; }
#ring { position: absolute; left: 120px; top: 70px; width: 350px;
height: 350px; border: 5px solid red; }
</style>
</head>
<body>
<div id="ring"></div>
<div id="box"></div>
</body>
</html>