Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1636
posted 14 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
1641
posted 14 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
1550
posted 14 years ago by Huskie
Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.
0
1512
posted 14 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
1599
posted 14 years ago by inreflection7
HTML conditional comments used to target specific versions of Internet Explorer (is ignored by all other browsers).
0
2546
posted 14 years ago by DenoteIt
VBA script to remove all the images present in the active sheet of the Microsoft Excel spreadsheet.
0
1535
posted 14 years ago by mikaelpelle
.zz1_logoLinkId_1
{
color: #fff;
background-image:url("/_layouts/Images/HLLMRKLINK/Logo.gif");
background-repeat:no-repeat;
background-position:15px 10px;
background-color:#67507e;
display:block;
width: 170px;
height: 88px;
overflo...
0
1557
posted 14 years ago by nickaranz