Centers the element either vertically, horizontally, or both.
center()
will center the element relative to its parent or according to the page's body if the element has no parent.
If no argument is passed, as in myElement.center()
the element is aligned both vertically and horizontally.
उदाहरण
सिंटैक्स
center([align])
पैरामीटर्स
align
String:
passing 'vertical', 'horizontal' aligns element accordingly
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!