How to change the size of the workspace for cytoscape?

Cytoscape js is called from
<div id="cy"></div>
Here is an example of css:
spoiler
#cy {
 z-index: 999;
 width: 85%;
 height: 85%;
 float: left;
 }

Or this:
spoiler
#cy {
 width: 50%;
 height: 50%;
 position: relative;
 left: 30;
 top: 0;

}

But for some reason all my attempts to change its dimensions so that it felt other elements were not successful(
June 8th 19 at 16:27
0 answer

Find more questions by tags JavaScriptHTMLCSS