Welcome To Snipplr


Everyone's Recent Snippets Tagged text



Styles selected text
0 588 posted 14 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 929 posted 14 years ago by jkandei
This appears to be the easiest way to create vertical text (that isn't rotated) with CSS.
7 1047 posted 14 years ago by Nettuts
found this on a forum comment thought it would be useful
2 804 posted 14 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 944 posted 14 years ago by chicagowebmanagement
very minimal way to get the value and text of a combo box using jquery
1 722 posted 14 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 917 posted 14 years ago by jafar
This will extend jquery to have a :Contains selector that is case insensitive, the :contains selector remains unchanged.
0 776 posted 14 years ago by magicrebirth
3 858 posted 14 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 727 posted 14 years ago by Fogh
quick way to strip the rtf data so you have clean text
0 887 posted 14 years ago by cartercole
1 746 posted 14 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 957 posted 14 years ago by s0l1dsnak3123
Turn a html source into a full text document by removing all html tags and other unneeded code.
0 862 posted 14 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 563 posted 14 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 756 posted 14 years ago by scheurbert
0 762 posted 14 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 1144 posted 14 years ago by usman
[via rtcrm] Image/Text replacement for clickable image. This is useful for logo images.
1 743 posted 14 years ago by mennyj
0 853 posted 14 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 989 posted 14 years ago by blackf0rk
Here is how you add a shadow to a UILabel on the iPhone.
1 890 posted 14 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 1159 posted 14 years ago by adrianparr