JSFiddle - React, Tailwind, and code Playground

by Dragonseer

HTML

<div class="myDiv">
        abc
    </div>

<input type="button" id="fullscreen-myDiv" value="fullscreen on .myDiv">

CSS

.myDiv {
    width: 80%;
    background: blue;
}
.myDiv:-moz-full-screen {
    margin-top: 0;
    background: red !important;
}
.myDiv {
    margin-top: 65;
}

JavaScript

$('#fullscreen-myDiv').click(function() {
    $('.myDiv')[0].mozRequestFullScreen();
});