Skip to content

Instantly share code, notes, and snippets.

@JuanMaRuiz
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JuanMaRuiz/c67490ed1ce35a78ac51 to your computer and use it in GitHub Desktop.
Save JuanMaRuiz/c67490ed1ce35a78ac51 to your computer and use it in GitHub Desktop.
Some useful CSS3 techniques.

#Some CSS3 techniques

Shadow with CSS for png images

Extract from

If you want to create a shadow for a png image, no matter what form has. You can do it applying the css filter -webkit-filter.

Original image:

alt text

Example: img { -webkit-filter: drop-shadow(5px 5px 5px #222); filter: drop-shadow(5px 5px 5px #222); }

The result:

alt text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment