Welcome To Snipplr


Everyone's Recent CSS Snippets



1 ... 26 27 28 29 30 ... 39
Ever needed to use to background images in a table or div? It is possible b just using css. Although this is yet to be a standard safari will allow you to apply 2! Css backgrounds, however IE, FIRFOX and retro opera users will only see 1 !
1 1604 posted 16 years ago by scopefragger
Ever needed to restrict an images size? Or stop it from growing best the size of your div/table. It’s a horrible feeling when you see your nicely designed site get trashed by a single image because it’s a pixel or two too big! And if it’s a...
1 1872 posted 16 years ago by scopefragger
2 1450 posted 16 years ago by simmering
Sometimes you can't use an image button, you have to use a submit button, but you still want to hide the text and show an image instead. The width and height can be changed, of course. The point is that they are specified. Display:block is need...
1 2577 posted 16 years ago by jessibird
requires blank.gif (transparent 1px gif image)
1 2801 posted 16 years ago by gryzzly
2 1340 posted 16 years ago by iTony
A wrapper may be made to enclose the content of a page, and then you can write descendant CSS rules that mention that wrapper's ID or class name in the selector. But what if only IE thought that wrapper existed? Then those rules would only work for I...
4 1723 posted 16 years ago by Meander365
Think this is a good one to remember. Let's say you have a set of list items and all of them have a border of 1px. Inside you have an image. When you hover over each list item you want the border to change thickness to 2px. The trick is to...
1 1593 posted 16 years ago by Meander365
This is a really useful techniques for preloading images on your website. Just place this code after the body tag in the CSS file. Everytime you refer to this image in your CSS file the image will be loaded from cache.
1 1384 posted 16 years ago by SunilTee
Enables you customise the colour of your <li> bullet points.
0 1539 posted 16 years ago by nostradamuszen
0 943 posted 16 years ago by pats
0 1030 posted 16 years ago by pats
0 1046 posted 16 years ago by pats
3 1165 posted 16 years ago by jfleblanc
1 1066 posted 16 years ago by jfleblanc
Works in Safari 3.0
1 1725 posted 16 years ago by ishottheserif
Doesn't work in IE6
2 1752 posted 16 years ago by ishottheserif
1 1379 posted 16 years ago by benedikt
0 1268 posted 16 years ago by terrencewood
Doesn't work in IE6, so use this to enhance sites rather than use thenm for required information. Very handy for adding a PDF icon behind a link. Make icons very small (16px x 16px) and with transparent space on left and top to make it look more al...
4 1504 posted 16 years ago by carriegates
works in IE6/IE7 with the css expression.
3 1688 posted 16 years ago by coreypurcell
Fairly simple, cross-browser way to rotate text using only CSS.
0 1605 posted 16 years ago by Winkyboy
All credit to Richard Clarke, code taken from HTML 5 Doctor. Posted here for quick access from TextMate.
6 4069 posted 16 years ago by mrjohnsly
In this tutorial we are going to use the :before pseudo-element to create a 3D style box. This effect will not work in Internet Explorer since it does not support the :before attribute. IE users will only see the element's themselves, and nothing els...
0 1172 posted 16 years ago by myrebel420
1 ... 26 27 28 29 30 ... 39