I have successfully created a modal view that I want to display in the center of the screen when the button #showModalView is clicked, and then hide the modal if a user clicks outside of it. You can check out the code for the modal view here: modal view fiddle.
However, I am facing challenges integrating this view into my current website structure. Here is the basic framework of my website:
<div>
<div class="header">THIS IS HEADER</div>
<p>paragraph 1</p>
<p>paragraph 1</p>
<div class="button">
<a id="showModalView" href="#">CLICK ME</a>
</div>
<br />
<div class="FOOTER">THIS IS FOOTER</div>
</div>
Does anyone have any suggestions on how I can seamlessly integrate the modal view into my website?