Welcome To Snipplr
Everyone's Recent Snippets Tagged text
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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
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
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
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
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