diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-06 15:32:23 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-06 15:32:23 +0200 |
| commit | 1c0a1d62484b63c51bb1fc224ce1b53465a27baf (patch) | |
| tree | f28db7c00c06f55eb52c97861aee2eaafd04af70 /template.html | |
| parent | c353c87c511b9d447f39f78826030d15a76b2691 (diff) | |
Update
Diffstat (limited to 'template.html')
| -rw-r--r-- | template.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/template.html b/template.html index 53be03b..20a73cb 100644 --- a/template.html +++ b/template.html @@ -23,6 +23,20 @@ <script type="text/javascript" src="js/p5_custom.js"></script> <script type="text/javascript" src="${JS}"></script> +<style> + #canvas { + width: intrinsic; /* Safari/WebKit uses a non-standard name */ + width: -moz-max-content; /* Firefox/Gecko */ + width: -webkit-max-content; /* Chrome */ + width:fit-content; + height: intrinsic; /* Safari/WebKit uses a non-standard name */ + height: -moz-max-content; /* Firefox/Gecko */ + height: -webkit-max-content; /* Chrome */ + height:fit-content; + margin-bottom:2em; + } +</style> + <body> <div class="container-fluid"> <div class="row"> @@ -48,7 +62,7 @@ <div class="row"> <div class="col" style="padding:0px;"> <center> - <div id="canvas" class="img-thumbnail" style="margin-bottom:2em;width:fit-content;height:fit-content;"></div> + <div id="canvas" class="img-thumbnail"></div> </center> </div> </div> |
