JSFiddle - React, Tailwind, and code Playground
by xdumaine
HTML
<div id="container">
<div id="header">
Header
</div>
<div id="body">
Body
</div>
<div id="panel">
Panel
<div id="node">
Node <button onclick="requestFullScreen()">FS</button>
</div>
</div>
</div>
CSS
#header {
background: red;
position: fixed;
display: block;
margin-left: 50px;
height: 30px;
top: 0;
width: 100%;
}
#node {
background: red;
}
#node:-moz-full-screen {
background: lime;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#panel {
position: fixed;
top: 0;
width: 50px;
height: 100%;
background: blue;
}
#body {
margin-top: 50px;
margin-left: 50px;
}
JavaScript
requestFullScreen = function() {
node = document.getElementById('node');
node.mozRequestFullScreen();
}