JSFiddle - React, Tailwind, and code Playground

by Rahul

HTML

<div class="content">This is the DIV</div>

CSS

.content{
 width:100px;
 height:60px;
 margin:auto;
 margin-top:auto;
    display:none;
}
.other_properties
{
    background:red;
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-50px;
    margin-top:-30px;
}

JavaScript

$(document).ready(function()
 {
       $('.content').css('display','block'); 
     $('.content').addClass('other_properties');
     
 });