Welcome To Snipplr
Everyone's Recent CSS Snippets Tagged text
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1146
posted 14 years ago by usman
[via rtcrm]
Image/Text replacement for clickable image. This is useful for logo images.
1
744
posted 14 years ago by mennyj
The issue appears in various places, but likely has something to do with "having layout" and is typically seen as extra whitespace between <li> elements.
0
1119
posted 14 years ago by Jamie
This is handy for cleaning up your HTML to use more plain text and fewer img tags. Whether this is SEO friendly or not is subjective. I tend to think it's fine as long as you don't use it for spam. Digg implements a similar method for their main logo...
1
1063
posted 15 years ago by adamcoulombe
Fairly simple, cross-browser way to rotate text using only CSS.
0
828
posted 15 years ago by Winkyboy
CSS
Cool CSS way to make left- or right-aligned (but not "styled" or "classed") images look pretty with no HTML change.
When we can't or won't change the code of image tag with align attribute, but no 'style="margin: 0 10px 10px 0;' or 'hspace=10px' (IMHO, hspace makes bad looking layout in most cases) code within (just pure <img> code), we can use simple CSS rules f...
1
1026
posted 15 years ago by kossmoss
I did not author this code. I came across it and have found it to be useful.
2
869
posted 16 years ago by gtalmes
This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specifie...
5
3489
posted 17 years ago by jonhenshaw