Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Comprueba la existencia de una cadena de texto en un input con javascript. (LA impresion del input está en CAKEPHP)
0
1893
posted 14 years ago by serialk89
Insert this into a custom node template to display the metatags inserted in my the metatag module.
<div>nid; ?>" class="<?php> clearfix"<?php>><?php>
0
1780
posted 14 years ago by mktimes5
as per title. Note in code I used <<>> as non-syntactic indicators of arbitrary code, and >>#<< as indicators of the actual syntax in this case it is #
0
1906
posted 14 years ago by skopp
1. Adding shadow to text – text-shadow
Helps make your text stand out from the rest.
2. border image rounding
0
2329
posted 14 years ago by skopp
Hiding text can be extremely useful to hide company logo. As logos are usually an image, you will want to use text indent to place it in a h1 tag for SEO (Search Engine Optimization). The technique we use is to hide the text far away off the screen,...
0
2232
posted 14 years ago by skopp
control text wrapping, add image size plus padding margin so that text does not float below images
0
1506
posted 14 years ago by dkempdesigns
Please comment or see the stackoverflow question to improve this.
0
4127
posted 14 years ago by xaddict
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0
2109
posted 14 years ago by iroybot
easy way of catching and displaying errors and return values from a exec() command back in PHP.
0
2267
posted 14 years ago by iroybot
Simply changes the name attribute on input elements when the page is loaded.
0
2031
posted 14 years ago by stevielamb83
Reduces the string size according to the parameter that has been send and put '...' at the end of the new string
0
1628
posted 14 years ago by Gianino
How does it work?
This code checks/unchecks all checkboxes within the same fieldset. Simple and semantic.
HTML Setup
Add checkboxes however you like, just make sure they are within the same fieldset.
<fieldset>
<!-->
<div><input>...
1
1822
posted 14 years ago by dnnsldr