From 16287ab0ab04764711ab5848a88f00ceb88acc5d Mon Sep 17 00:00:00 2001 From: Aaron Mazade Date: Tue, 15 Jul 2014 10:33:38 -0400 Subject: [PATCH] Fixing Top Margin The attribute was listed as "marginTop" in the documentation but in the actual source code it is listed as "topMargin." --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 1331292..e1bbf9e 100755 --- a/index.html +++ b/index.html @@ -112,7 +112,7 @@

"One Pager" anchor functionality. Oct 31st, 2013

In need of Margin... Oct 30th, 2013

-

When I initially made the plugin the goal was to make the element stick to the very top, but after deciding to make an official example page for it I realizd that I loved the look of a floating plugin. So I added a little feature called marginTop to the mix. This allows the element to be caught by it's margin rather than when it hits the top of the page. +

When I initially made the plugin the goal was to make the element stick to the very top, but after deciding to make an official example page for it I realizd that I loved the look of a floating plugin. So I added a little feature called topMargin to the mix. This allows the element to be caught by it's margin rather than when it hits the top of the page.

@@ -217,7 +217,7 @@

A little extra.
Addi

There is currently one additional option that stickUp offers, with more to come.

- marginTop: + topMargin: Adding this option to your stickUp element will catch the element by a margin. You could either set this to 'auto', which grabs your element's top margin, or to a custom pixel height. Here is an example of how the floating menu works on this webpage.

@@ -228,8 +228,8 @@

A little extra.
Addi $(document).ready( function() { //enabling stickUp on the '.navbar-wrapper' class $('.navbar-wrapper').stickUp({ - //enabling marginTop with the 'auto' setting - marginTop: 'auto' + //enabling topMargin with the 'auto' setting + topMargin: 'auto' }); }); }); @@ -289,7 +289,7 @@

Wordpress.
Adding fun

Done! That element is now a sticky element. You can use the other features of the plugin on Wordpress as well, just take a look at the One Pager and Extras section of this website.

- **Specifically look at the Extras feature 'marginTop' to add a margin for use with the Wordpress Toolbar, otherwise it may have a conflict. + **Specifically look at the Extras feature 'topMargin' to add a margin for use with the Wordpress Toolbar, otherwise it may have a conflict.