center html elements with js
JavaScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
README.md
index.js
package.json
run.sh

README.md

center

center an element in window or inside another element.

var center = require('center')

document.body.appendChild(center(el))

If you want to add features, post an issue and i'll add you as collaborator.

License

MIT