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
830
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
954
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
846
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
867
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
841
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
846
posted 13 years ago by inreflection7
HTML conditional comments used to target specific versions of Internet Explorer (is ignored by all other browsers).
0
903
posted 13 years ago by DenoteIt
VBA script to remove all the images present in the active sheet of the Microsoft Excel spreadsheet.
0
761
posted 13 years ago by mikaelpelle