Created
July 12, 2012 23:57
-
-
Save mattkruskamp/3101901 to your computer and use it in GitHub Desktop.
Test For Pinterest Style Modal Popups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
.container { | |
width: 100%; | |
color: #ccc; | |
} | |
.large-content { | |
width: 800px; | |
margin: 0px auto; | |
} | |
.container.active { | |
position: fixed; | |
} | |
.popup { | |
display: none; | |
} | |
.popup.active { | |
display: block; | |
position: absolute; | |
} | |
</style> | |
<title>Testy McTesterson's Test</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="test.js"></script> | |
</head> | |
<body> | |
<div class="popup"> | |
<p>Lots of content</p> | |
</div> | |
<div class="container"> | |
<div class="large-content"> | |
<p>Freaking tons of content <a href="#">Link to show modal</a></p> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment