Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Add two containers to the element to be centered.
This is also needed for IE6:
1.
<!--[if>-->
2.
.navwrap ul{float:left;}
3.
<![endif]-->
0
1455
posted 17 years ago by kanirasta
Simple function which makes it easy to add files to svn in bash (add this to your .bashrc file).
1
1672
posted 17 years ago by narkisr
https://www.chrisjmendez.com/2008/10/18/search-for-mp3s-pdfs-or-comic-books-using-google/?utm_source=snipplr&utm_medium=profile&utm_campaign=personal_branding
1
1904
posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/10/18/jquery-detecting-a-browser-resize/
8
2321
posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/10/18/jquery-common-browser-sniffing/
6
1729
posted 17 years ago by chrisaiv
Use by inserting the following in the head.
<script>
$(document).ready(function() {
$("input").toggleVal();
});
</script>
0
1696
posted 17 years ago by davebowker
remove(array) --> array
Array.remove(a) simply removes all the items in the passed in array from the current scope array. Good for bulk operations.
0
1504
posted 17 years ago by kouphax
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2
1791
posted 17 years ago by berkes
this is a combination of javascript and css and an image called letters.jpg that allows you to use any font you want for the first letter of each paragraph. Letters.jpg needs to have all the letters in uppercase in a row. See the link for a sample le...
0
1301
posted 17 years ago by ezerick
Because onDragOver in AS2 doesn't really work, here is some script for actually detecting whether the mouse button is held down when rolling over something. NOTE that for ideal usage, you will have to write some actual collision detection between th...
0
1328
posted 17 years ago by Winkyboy