<style> #modal { position: fixed; z-index: 101; top: 33%; left: 25%; width: 50%;} </style> <div id="modal"> </div>