Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<link rel="help" href="https://www.w3.org/TR/SVG2/coords.html">
<style>
section { margin-bottom: 10px; }
div { background: rgba(255, 0, 0, 0.15) }
svg { background: rgba(0, 0, 255, 0.15) }
</style>
<body>
<section>
<div style="position: relative; width: 240px; height: 340px;">
<svg style="position: absolute;" width="240" height="240"
</div>
</section>
<section>
<div style="position: relative; width: 300px; height: 200px">
<div style="position: absolute; width: 300px; height: 200px;">
<svg style="position: absolute;" width="200" height="200"
</div>
</div>
</section>
</body>
</html>