Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necess...
0
945
posted 13 years ago by paulgrenwood
Given an iframe element and a header element, make the iframe just high enough to fit in the browser window. On window resize, readjust. Keep a minimum height for the iframe.
0
1082
posted 13 years ago by kendsnyder
CSS:
.error
style the error class
Form HTML:
class="required"
makes the input field required
minlength="2"
makes the field require at least 2 characters
0
972
posted 13 years ago by redconservatory
Pure CSS3 buttons with 9 pre-defined colours and 3 styles.
Adapted from Web Designer Wall - http://www.webdesignerwall.com/demo/css-buttons.html
1
988
posted 13 years ago by Huskie
Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.
0
938
posted 13 years ago by macodev
image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.
0
971
posted 13 years ago by inreflection7
HTML conditional comments used to target specific versions of Internet Explorer (is ignored by all other browsers).
0
1008
posted 13 years ago by DenoteIt
VBA script to remove all the images present in the active sheet of the Microsoft Excel spreadsheet.
0
898
posted 13 years ago by mikaelpelle