Socket
Book a DemoInstallSign in
Socket

cen-div

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

cen-div

center a parent element

unpublished
latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

js package to center a div.

install the npm package.

import {cenDiv} from './node_modules/cen-div/index.js' instead of import {cenDiv} from 'cen-div' import function cenDiv(selector) for example cenDiv(".container") selector has to be a string.

add a script tag in your html.

call cenDiv(selector) and enter the name of the tagname with selector e.g ., #, etc.

All done.

Best for only parent elements not child elements.

FAQs

Package last updated on 26 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts