Skip to content

Instantly share code, notes, and snippets.

@Jared314
Last active Aug 29, 2015
Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#fixednode { background-color: red; color: white; }
#item1 { background-color: blue; color: white; }
</style>
<style type="text/x-pbpl">
#item1 {
spring: left body left;
spring: right body right;
spring: top #fixednode bottom;
spring: bottom body bottom;
}
</style>
</head>
<body>
<div id="fixednode">Fixed DOM node</div>
<div id="item1">Item 1</div>
<script type="text/javascript" src="pbpl.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment