Giter Club home page Giter Club logo

century.js's Introduction

century.js

A purely JavaScript, super light-weight, ultra fast and easy to use plugin that eliminates the problem of centering elements in web pages. Century can center veritcally (the most challenging problem faced by this plugin) and can center horizontally.

=======

###Usage We recommend that you use the minified version of the code as it is the most lightweight and will load the fastest for your users. If you need to, you can use the un-minified version. DO NOT use the full version as it is there for purely reference purposes. IN NO WAY WILL IT FUNCTION PROPERLY!!!

Simply put the following line in your header and call the function appropriately:

<script src="http://www.synergytechhosting.com/century/century.min.js"></script>

or download the files in the repository and use them locally like this:

<script src="/path/to/folder/containing/files/js/century.min.js"></script>

and call it like so:

<script>century(parent, element);</script>

century(parent, element);

  • parent - what you would like to count as its parent element. Usually we suggest its parent element.

  • element - the element that you would like to be centered

=======

###Examples Examples can be found here

=======

Credits

Creators: @emanuel12324 & @theawesomecoder61

century.js's People

Contributors

emanuel12324 avatar theawesomecoder61 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.