0%

Hey! Do you have any query related to front end?

Sign in Sign up

Centralize your contentBack

How to call:

Many times it has been asked, how to dynamically position our content inside its parent. So accordingly this plugin has been created to solve such problem. This is quiet simple to use. Only you will have to call "centralize()" function for the container, whose content you want to keep in center. There is an option to keep content at left, right, top or bottom too. This plugin will keep your content as appropriate position during resizing window too.

Add this plugin


And call its function.

$('.setLeft .collumn').centralize({
	pos : 'left' // Center from left
});
$('.setRight .collumn').centralize({
	pos : 'right' // Center from right
});
$('.setTop .collumn').centralize({
	pos : 'top' // Center from top
});
$('.setBottom .collumn').centralize({
	pos : 'bottom' // Center from bottom
});
$('.setAllSide .collumn').centralize(); //// Center from allside

How to comment:

  • Create an account in discuss by clicking on login next to arrow.
  • Create password for discuss and varify your email id, through your mail.
  • Refresh page and comment.

You might also like

  • Detect device by javascript

    A simple javascript to detect device

    • 244
    • 1
    • 244
    • facebook icon
    • twitter icon
    • google plus
  • Css3 piano card navigation

    CSS3 transform and transition animation

    • 332
    • 12
    • 332
    • facebook icon
    • twitter icon
    • google plus
  • Tab 2 accordion responsive plugin

    Plugin that changes tabs to accordion

    • 284
    • 11
    • 284
    • facebook icon
    • twitter icon
    • google plus

Latest quries posted

gopa kumarabout 3 years ago

amit singhabout 3 years ago

rahmat aliabout 3 years ago

mandavi tiwariabout 3 years ago

rahul sharmaabout 3 years ago

Ask question
Latest video
Learn Angular
Profile pic
Guest Back
Username
Password