Welcome To Snipplr


Everyone's Recent CSS Snippets



1 ... 16 17 18 19 20 ... 39
Of course, you don't have to set the width to 50%. Any width less than the containing div will work. The margin: auto is what does the actual centering.
1 929 posted 14 years ago by alozuldo
If you would like to use relative units (em) for your font sizes, declaring 62.5% for the font-size property of the body will make it easier to convert px to em. By doing it this way, converting to em is a matter of dividing the px value by 10 (e.g....
3 982 posted 14 years ago by alozuldo
For progressive enhancement, you could use the transform property that is supported by many browsers that have CSS3 support. Here’s a trick for enlarging a elements on hover by 110%.
1 832 posted 14 years ago by alozuldo
The code below will change the background-color of divs depending on what browser the user is viewing the web page under. Since * cascades down to IE7 and below, we use _ after that declaration so that IE6 (and below) has a different background color...
1 911 posted 14 years ago by alozuldo
This snippet for @font-face *didn't work* as well as the standard Bulletproof code.
1 695 posted 14 years ago by creativeboulder
Styles selected text
0 588 posted 14 years ago by dani
demo at http://adamcoulombe.info/lab/css/background-transparency.html ... Give an element a background color transparency without affecting the opacity of child or descendant elements. This is a no-PNG method!
0 872 posted 14 years ago by adamcoulombe
rounded corners css3
0 561 posted 14 years ago by themainentity
1 706 posted 14 years ago by zreedeecom
This appears to be the easiest way to create vertical text (that isn't rotated) with CSS.
7 1049 posted 14 years ago by Nettuts
Taken from (http://jc-designs.net/blog/2009/08/background-image-on-submit-button-in-ie6/)
1 901 posted 14 years ago by resting
Find mistakes in HTML and highlight the crap out of them
2 620 posted 14 years ago by juhau
0 611 posted 14 years ago by lromak
0 613 posted 14 years ago by ff1959
0 610 posted 14 years ago by sb_01
Only works for webkit
1 532 posted 14 years ago by tcdesign
1 776 posted 14 years ago by TrendyPet
This will add a subtle drop shadow to all images on a page. Works with all major browsers excluding Internet Explorer 8 and below. The beta version of Internet Explorer does support box-shadow. There's a nice writeup on box shadow here: http://www...
2 765 posted 14 years ago by jazzs3quence
0 952 posted 14 years ago by vagrantradio
1 600 posted 14 years ago by devilsansclue
highlights on active state. uses css gradients
0 725 posted 14 years ago by discipolo
Añadir una fuente vía css.
3 649 posted 14 years ago by cesarchas
2 795 posted 14 years ago by polly42
7 786 posted 14 years ago by kath
1 ... 16 17 18 19 20 ... 39