Permalink
Browse files

Updated readme.

  • Loading branch information...
1 parent 35b0c60 commit ae0f89b7e6e61e3db8d01938b84e012030dfef58 @polarblau committed Oct 9, 2011
Showing with 37 additions and 0 deletions.
  1. +37 −0 README.markdown
View
@@ -49,4 +49,41 @@ Requires basic HTML structure
</li>
</ul>
</div>
+```
+
+And some simple CSS to
+
+```css
+/* Reset some list defaults for all lists */
+ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+/* The main container */
+#sticky-list {
+ height: 100px;
+ overflow: hidden;
+ position: relative;
+}
+
+/* The main list */
+#sticky-list > ul {
+ height: 100%;
+ overflow: auto;
+}
+
+/* Section headers, defined through "headlineSelector" */
+#sticky-list > ul > li strong {
+ display: block;
+}
+
+/* Section headers when "sticky", defined through "stickyClass" */
+#sticky-list > ul > li.sticky strong {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+}
```

0 comments on commit ae0f89b

Please sign in to comment.