Center Horizontal and Vertical - Tailwind CSS Plugin
Center horizontal and vertical absolute positioned elements in a div at your Tailwind CSS project.
Pull it in through npm or yarn:
npm install tailwindcss-absolute-center
yarn add tailwindcss-absolute-center
Add Tailwind CSS to your project as described here. Install tailwindcss plugin as described above and add it to your tailwind.config.js file.
plugins:// Other pluginsvariants: 'responsive'
Available Animate CSS classes
.center-x to horizontal or
.center-y to vertical center your absolute element in a relative div.
More Tailwind CSS Plugins
This project is licensed under the MIT License.