Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
center html elements with js
JavaScript Shell
Branch: master
Failed to load latest commit information.
example initial
README.md initial
index.js initial
package.json initial
run.sh initial

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

Something went wrong with that request. Please try again.