JSFiddle - React, Tailwind, and code Playground
HTML
<div id="popup" >
<div id="img-section" >
<img src="http://icons.iconarchive.com/icons/artdesigner/tweet-my-web/256/single-bird-icon.png" />
</div>
<div id="description">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen bFinibus Bonorum et Malorum" (The Extremes of
<h1> helpoig</h1>
</div>
</div>
<div id="fade" class="black_overlay"></div>
<a href="#" class="popitup"> click here</a>
CSS
body {
min-width: calc(1200px + 10%);
}
.black_overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: black;
z-index: 1001;
opacity: .8;
}
#popup, #popup * {
box-sizing: border-box;
}
#popup {
display: none;
position: absolute;
top: 8%;
left: 10%;
width: 1200px;
height: 600px;
padding: 0;
background-color: white;
z-index:1002;
overflow:hidden;
}
#img-section {
position:relative;
width:800px;
float:left;
background:black;
cursor:pointer;
height:600px;
padding:5px;
margin-top: -20px;
margin-left: -15px;
margin-right: 10px;
}
#description {
position:relative;
background-color: #fff;
width:400px;
overflow-y: auto;
position: relative;
word-wrap: break-word;
height:600px;
padding: 20px;
}
#img-section > img {
display:inline-block;
height: auto;
vertical-align:middle;
width:auto;
}
JavaScript
$("a.popitup").click(function (e) {
e.stopPropagation();
$("#popup").css('display', 'block');
$("#fade").css('display', 'block');
});
$("body").click(function () {
$("#popup").css('display', 'none');
$("#fade").css('display', 'none');
});
$("#popup").click(function()
{
return false;
});