summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 19c7592..f279990 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,10 @@ This will generate the following output:
</svg>
</div>
```
+If the svg canvas should follow the dimensions of its parent, in this case '#paper', you can use a percentage value:
+```javascript
+var draw = svg('paper').size('100%', '100%');
+```
## Elements