Author: | chigozieorunta |
---|---|
Views Total: | 168 views |
Official Page: | Go to website |
Last Update: | November 7, 2019 |
License: | MIT |
Preview:

Description:
The centralize.js library provides a simple and cross-browser solution to center any element horizontal and vertical, without writing confusing CSS rules.
How to use it:
1. Link to stylesheet centralize.css
and JavaScript centralize.js
.
<link href="centralize.css" rel="stylesheet"> <script src="centralize.js"></script>
2. Add the CSS .centralize
element to the element. That’s it.
<div class="centralize"> <h1>I'm centralized<h1> </div>