Top 10 Code Snippets from Snipplr

Features and Updates/Tools

Top 10 Code Snippets from Snipplr

Snipplr was launched in June 2006.

With Snipplr you can keep all of your frequently used code snippets in one place that’s accessible from any computer. You can share your code with other visitors and use what they post, too.

During the short six months that Snipplr has been online, thousands of useful code snippets have been added. Every day, developers and designers utilize Snipplr to grab clever snippets of code to make their work easier and better. Snipplr has a Favorites feature that allows registered users to add code snippets to their Favorites list. Below is a list of the current top ten code snippets from the Popular code snippet list.

  1. AJAX Edit in Place (Javascript)
  2. ShowHide (Javascript)
  3. PNG background transparency IE (CSS)
  4. XHTML 1.1 web standard template (HTML)
  5. Clear floats without structural markup (CSS) — “.clearfix” is the container that holds all of your floated elements. Works in all browsers that support “float” and “clear”.
  6. min-height for IE (and all other browsers) (CSS)
  7. min-height for IE (and all other browsers) (CSS) — Since min-height doesn’t work in IE, this code makes up for IE’s shortcomings. The first part of the code is the correct code that works in Firefox and Safari. The second part of the code is for IE. Internet Explorer will ignore min-height and is just given a height of 8em. The IE bug automatically expands the container to fit the extra text.
  8. undohtml.css – Tantek’s Original (Removes Browser Default Style) (CSS) — Purpose: undo some of the default styling of common (X)HTML browsers. (CC) 2004 Tantek Celik.
  9. Check for valid email address (PHP)
  10. Opacity Hack (CSS) — Sets the opacity of an element and its children. Doesn’t validate. Mozilla began supporting the opacity rule in version 1.7, so ‘-moz-opacity’ may not be necessary…

Comments are closed on this post