Skip to content

Commit 6e1b2c4

Browse files
committed
cleaned up README examples
1 parent c602878 commit 6e1b2c4

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,16 @@ Options
2727

2828
You can pass 1 parameter and an options hash to the plugin.
2929

30-
- `onAttribute` - the css attribute that the value should be set on (default: `'margin-top'`)
31-
- `verticalOffset` - the number of pixels to offset the vertical alignment by, ie. `10`, `"50px"`, `-100` (default: `0`)
32-
- `parentSelector` - a selector representing the parent to vertically center this element within, ie. `".container"` (default: the element's immediate parent)
30+
- `onAttribute` - the css attribute that the value should be set on (default: 'margin-top')
31+
- `verticalOffset` - the number of pixels to offset the vertical alignment by, ie. 10, "50px", -100 (default: 0)
32+
- `parentSelector` - a selector representing the parent to vertically center this element within, ie. ".container" (default: the element's immediate parent)
3333

3434
Examples:
3535

3636
<script>
3737
$(document).ready(function() {
3838
$('#element-to-be-centered').flexVerticalCenter('padding-top');
39-
});
40-
</script>
41-
42-
<script>
43-
$(document).ready(function() {
4439
$('#element-to-be-centered').flexVerticalCenter('margin-top', { verticalOffset: 50 });
45-
});
46-
</script>
47-
48-
<script>
49-
$(document).ready(function() {
5040
$('#element-to-be-centered').flexVerticalCenter('padding-top', { verticalOffset: 50, parentSelector: '.parent' });
5141
});
5242
</script>

0 commit comments

Comments
 (0)