Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated readme.

  • Loading branch information...
commit ae0f89b7e6e61e3db8d01938b84e012030dfef58 1 parent 35b0c60
@polarblau authored
Showing with 37 additions and 0 deletions.
  1. +37 −0 README.markdown
View
37 README.markdown
@@ -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;
+}
```
Please sign in to comment.
Something went wrong with that request. Please try again.