Welcome To Snipplr


Everyone's Recent Snippets Tagged text



Styles selected text
0 437 posted 13 years ago by dani
The easiest way to create vertical text is to use ems in addition with a space between the letters of the word that should be displayed verticaly
1 725 posted 13 years ago by jkandei
This appears to be the easiest way to create vertical text (that isn't rotated) with CSS.
7 830 posted 13 years ago by Nettuts
found this on a forum comment thought it would be useful
2 617 posted 13 years ago by itinko
This is a simple 'text to array for output' script that I've used a few times for my clients. Hope you like!
0 755 posted 13 years ago by chicagowebmanagement
very minimal way to get the value and text of a combo box using jquery
1 544 posted 13 years ago by blipz
If you ever wanted to add padding to a Text Input instance, use the \"textPadding\" Style under the Text Input Class like so.
2 687 posted 13 years ago by jafar
This will extend jquery to have a :Contains selector that is case insensitive, the :contains selector remains unchanged.
0 613 posted 13 years ago by magicrebirth
3 658 posted 13 years ago by alozuldo
Class to shorten text. For example for an article where people can click read more to read the whole article.
1 545 posted 13 years ago by Fogh
quick way to strip the rtf data so you have clean text
0 692 posted 13 years ago by cartercole
1 556 posted 13 years ago by thesmu
I switched the h1 to a span to stop the hover from being effective from the other side of the page. Take a look at it [here](http://jsbin.com/okepo4/6/,\"here\")
1 744 posted 13 years ago by s0l1dsnak3123
Turn a html source into a full text document by removing all html tags and other unneeded code.
0 643 posted 13 years ago by math89
Just run in your consol window as ./tocase (or whatever you call the file). Be sure to give it proper permission first (chmod 755 tocase) :]
0 396 posted 13 years ago by davidmoreen
Just a quick script to enable default text within a form element to be cleared or restored upon focus/blur of a particular element. Should give you roughly the same functionality as the new HTML5 webforms "placeholder" attribute.
0 572 posted 13 years ago by scheurbert
0 580 posted 13 years ago by j4kp07
Great little piece of CSS which adds a top text-shadow of 45% black and a bottom text-shadow of 75% white creating a very nice letterpress text effect.
2 866 posted 13 years ago by usman
[via rtcrm] Image/Text replacement for clickable image. This is useful for logo images.
1 572 posted 13 years ago by mennyj
0 669 posted 13 years ago by metoikos
This code will take a start and end string and then search for them within the subject string. It returns what is between the start and end strings. As an example, if I had the following text... Some test text string, with a start <tag> and an end...
0 796 posted 13 years ago by blackf0rk
Here is how you add a shadow to a UILabel on the iPhone.
1 659 posted 13 years ago by espinallab
To style the text in a TextArea component, create a TextFormat object and pass it to the TextArea's setStyle method.
0 922 posted 13 years ago by adrianparr