center-div
v1.0.0
Published
Center a div
Downloads
1
Readme
center-div
Easily center a div both horizontally and vertically using JavaScript.
Installation
npm install center-div
Usage
const centerDiv = require('center-div');
const myDiv = document.getElementById('myDiv');
centerDiv(myDiv)