This is a sample demo for you. Your html should look like this:
<a id="go" name="test" href="#test">Basic</a> <div id="test"> bla bla bla </div>
You css should be like this:
#lean_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; background: #000; display: none; } #test { width: 600px; padding: 30px; display: none; background: #FFF; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; box-shadow: 0px 0px 4px rgba(0,0,0,0.7); -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7); -moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7); }
Your javascript should look like this: I assume that you referenced the script artistically in your document in your head and you are not getting any errors in the browser console.
<script type="text/javascript"> $("#go").leanModal(); </script>
source share