<style type="text/css">#myModal{margin-top:0px;}
.modal-header button{
display: block;
margin: 5px 18px 20px auto;
background-color: transparent;
font-size: 30px;
color: #ffffff;
background: #03549a;
border-radius: 100%;
width: 45px;
height: 40px;
border: none;
outline: none;
cursor: pointer;
}
@media only screen and (max-width: 600px) {
.modal-content{
left:10% !important;
}
#pban img{
width: 286px !important;
}
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="bs-example"><!-- Button HTML (to Trigger Modal) --><!-- Modal HTML -->
<div class="modal fade" id="myModal">
<div class="modal-dialog" style="width:80%;">
<div class="modal-content">
<div class="modal-header" style="border: none; padding-bottom:0px;"><button aria-hidden="true" data-dismiss="modal" id="close" type="button">×</button></div>
<div class="modal-body" id="pban">
<center> </center>
<center><img alt="" src="/sites/bagmatimunmakawanpur.gov.np/files/u51/thumb_%E0%A4%AE%E0%A5%8C%E0%A4%B8%E0%A4%AE%20%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7%20%E0%A4%9C%E0%A4%BE%E0%A4%A8%E0%A4%95%E0%A4%BE%E0%A4%B0%E0%A5%80_page-0001.jpg?s2096d1727603264" style="width: 500px; height: 403px;" /></center>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(window).on('load',function(){
$('#myModal').modal('show');
});
document.querySelector("#close").addEventListener("click", function(){
document.querySelector(".modal-body").style.display = "none";
});
</script>