Skip to content

Instantly share code, notes, and snippets.

@mattkruskamp
Created July 12, 2012 23:57
Show Gist options
  • Save mattkruskamp/3101901 to your computer and use it in GitHub Desktop.
Save mattkruskamp/3101901 to your computer and use it in GitHub Desktop.
Test For Pinterest Style Modal Popups
<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