diff options
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> |
