Tired of adding prefix for each broswer when it comes to the new css3 attributes?
Switch branches/tags
Nothing to show
Pull request Compare This branch is 82 commits behind codler:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


CSS 3 Finalize

Some css3 attributes needs to have a prefix in front in order to work in different browser. The plugin takes care of that so you only need to write without the prefix.

For example the css3 attribute box-sizing need to have the prefix

  • -moz- in Firefox
  • -ms- in Internet explorer
  • -webkit- in Chrome, Safari
  • -o- in Opera
If you write without the prefix it won't work in those browser, you need the write each of them. Here is where this jquery plugin comes in. You only need to write it without the prefix and the plugin will automatically add the prefix. With this you will save time and the pain of rewriting same attribute many times.

How to use

Simply add this code to your site

<script src="http://github.com/codler/jQuery-Css3-Finalize/raw/master/static/jquery.css3finalize-latest.min.js"></script>

Once the script is loaded it will search for style-tags and link-tags (within same domain) and parse them.


This script has been tested on windows in IE 7, FF 3.6, Chrome 7, Safari 5, Opera 10.6

Some notes

  • The script can only read link-tags where it source are from same domain. Except for local files in IE 7.
  • Link-tags cannot be read on Chrome 7 on local files.

$.fn.Css is extended

You can leave out the prefix when setting a style in Jquery css method.


$('a').css({'border' : '1px solid #000000', 'border-radius' : 10});

In normal case you would have needed to add a prefix

$('a').css({'border' : '1px solid #000000', '-moz-border-radius' : 10});