Welcome To Snipplr
Everyone's Recent CSS Snippets Tagged text
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Using a combination of background and padding styles to modify the way list image styles are applied.
0
976
posted 10 years ago by bcounts
To correct the shift that happens on hover when the weight of the link is normal, but bold on hover.
0
1050
posted 11 years ago by stephcode
The CSS text overflow ellipsis solution is perfect for single line truncations. I use this constantly when building mobile or responsive applications.
0
937
posted 11 years ago by chillyjames
Truncate text using only CSS. IE 6+, Safari 4+, Firefox 7+, Opera 11+ and Chrome 10+:
0
909
posted 11 years ago by zfisic
1. Adding shadow to text – text-shadow
Helps make your text stand out from the rest.
2. border image rounding
0
984
posted 12 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
871
posted 12 years ago by skopp
To wrap long URLs, strings of text, and other content, just apply this carefully crafted chunk of CSS code to any block-level element (e.g., perfect for <pre> tags):
1
835
posted 13 years ago by mdjamal
This snippet simply makes the text wrap when it reaches the walls of its container, in this case, the pre tag, whilst still preserving line breaks and white space cross browser.
0
703
posted 13 years ago by paul66
This appears to be the easiest way to create vertical text (that isn't rotated) with CSS.
7
1048
posted 14 years ago by Nettuts
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