<commit_before># centerThis.js

a simple jQuery plugin to Center an element in its parent.


_or_ Center an element to the browser. Good for Heros.
#### Center an element in its parent:
`$("section.yourElement").centerThis();`
#### Center an element in the browser:
`$("section.yourElement").centerThis("browser");`
How it works:
---
By grabbing the elements height and width, along with its parents; centerThis.js does some pretty simple math to calculate its center position... and sets the element there, setting it to `position: absolute` in the proccess.
<commit_msg>Added working demo link<commit_after># centerThis.js

a simple jQuery plugin to Center an element in its parent.

heres a super simple [demo](http://danieltamkin.github.io/centerThis.js/) to show centerThis.js in action.

_or_ Center an element to the browser. Good for Heros.
#### Center an element in its parent:
`$("section.yourElement").centerThis();`
#### Center an element in the browser:
`$("section.yourElement").centerThis("browser");`
How it works:
---
By grabbing the elements height and width, along with its parents; centerThis.js does some pretty simple math to calculate its center position... and sets the element there, setting it to `position: absolute` in the proccess.

{'fraction_non_alphanumeric': 0.10467882632831087, 'fraction_numerical': 0.0, 'mean_word_length': 4.815668202764977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '995582', 'n_tokens_mistral': 334, 'n_tokens_neox': 330, 'n_words': 163}