Skip to content

banzor/jquery-cssHooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cssHooks

A collection of cssHooks that work with jQuery 1.4.3+.

Currently normalizes the margin, padding, backgroundPosition, backgroundPositionX, and backgroundPositionY css getters and setters.

Usage

Super simple. Just request the margin, padding, backgroundPosition, backgroundPositionX, and/or backgroundPositionY like you would other CSS properties.

// #myElement { margin: 1px 2px 3px 4px; }
$('#myElement').css('margin'); // "1px 2px 3px 4px"

What are cssHooks?

jQuery 1.4.3 introduced the concept of cssHooks. They allow you to hook directly into jQuery and override how certain css properties are retrieved or set. This allows for browser normalization or even the creation of your own unique css properties.

License

The cssHooks plugin is licensed under the MIT License (LICENSE.txt).

Copyright (c) 2010 Brandon Aaron and Burin Asavesna

About

Collection of cssHooks that work with jQuery 1.4.3+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published