<div class="center-box">
  <button id="modelshows">Click Me</button>
</div>

<div id="shomodel">
    <div class="my_inspopups">
        <div class="mymainmd">
         	<div class="close_mds">✖</div>
            <div class="popup_body">
                <h1>We can put your content</h1>
                <img src="https://images.unsplash.com/photo-1483984812800-387c7b52d147?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80" alt="">
            </div>
        </div>
    </div>   
</div>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>  
*{
    margin: 0px;
}
.close_mds {
    position: absolute;
    top: -8px;
    right: -46px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
div#shomodel {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
}
.my_inspopups{
    display: -webkit-box; 
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    width: 100%;
}
.mymainmd {
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 2px;
    text-align: center;
    position: relative;
}


button#modelshows {
    background: #5cdb94;
    border: none;
    width: 100%;
    max-width: 200px;
    padding: 16px;
    font-size: 22px;
    margin: 0 auto;
    font-family: cursive;
    box-shadow: 4px 5px 0px #eaeaea;
}
.center-box {
    height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.overlay-bg {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: red;
}
.popup_body img {
    width: 100%;
}
.popup_body h1 {
    font-family: cursive;
    margin: 0 0 25px 0;
}
$(document).ready(function(){
    $('#modelshows').click(function(){
       $('#shomodel').fadeIn();
    })

    $(".close_mds").click(function(){
    	$(this).parents('#shomodel').hide();
    });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.