Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (43 sloc) 1.401 kB
<!DOCTYPE HTML>
<html>
<head>
<title>Sticky Sidebar Demo - Basic</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="./demo.styles.css" media="all">
<style>
.container { width: 100%; }
#main { width: 50%; }
</style>
</head>
<body>
<div id="header"></div>
<div id="content">
<div class="container">
<div id="main">
<h1>A Sticky Sidebar demo</h1>
<p>This is a barebones demo showing a typical sticky sidebar UX.</p>
<p>Sometimes you want the summary to stay in view no matter now long the page is.
Useful when you have a long form with multiple items to keep track of.</p>
</div><!-- /#main -->
<div id="sidebar">
<h2>Summary box</h2>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
</div><!-- /#sidebar -->
</div><!-- /.container -->
</div><!-- /#content -->
<div id="footer"><p><small>&copy; 2011. Yelotofu. No rights reserved.</small></p></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="./jquery.stickysidebar.js"></script>
<script>
(function($){
$('#sidebar').stickySidebar();
})(jQuery);
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.