Skip to content

Instantly share code, notes, and snippets.

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