Welcome To Snipplr


Everyone's Recent CSS Snippets Tagged c



Each image is positioned, dimensioned, and repeated according to the comma separated values in the other background properties. The images in the list are layered front to back in the same order they are listed in the rule declaration. If a backgroun...
0 3370 posted 13 years ago by COBOLdinosaur
Simple Clearfix
0 1787 posted 13 years ago by andrewcolby
Create a subtle "recessed" looking divider line. The example restyles the <hr> tag but it can applied to anything.
1 1900 posted 13 years ago by nshakin
Reference a custom font file for use within a stylesheet
0 1771 posted 13 years ago by nshakin
Multiple backgrounds
0 1544 posted 13 years ago by kickass
Forces padding to not be added to overall box dimensions but instead subtracted - good for frameworks. For example, a container 960px with a 20px border and a 20px padding added still remains 960px allowing me to enjoy my life free of pesky maths....
1 1524 posted 13 years ago by kickass
Tested in Firefox 4, Safari 4, Chrome 14, Opera 10, IE 8 (and newer)
0 2138 posted 13 years ago by jntu_gnec
Demo Image: http://i.imgur.com/hTQXYOu.png
0 2819 posted 13 years ago by jntu_gnec
Demo Image http://i.imgur.com/f7o3Flr.png
1 3218 posted 13 years ago by jntu_gnec
0 1712 posted 13 years ago by scorpayllc
0 1680 posted 13 years ago by scorpayllc
0 2879 posted 13 years ago by scorpayllc
0 1746 posted 13 years ago by scorpayllc
When I got the font from SymbolSet I was really excited to drop it into my interface but found many of the classes did not work. It looked like an encoding issue (since using the in line versions worked). Upon replacing all 570+ UTF-8 characters with...
0 2230 posted 13 years ago by paulprins
Generate numbered classes and apply variable mixins. Base from [http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/](http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/)
0 2946 posted 13 years ago by BuschFunker
The CSS text overflow ellipsis solution is perfect for single line truncations. I use this constantly when building mobile or responsive applications.
0 3002 posted 13 years ago by chillyjames
Spacing between thead and tbody
0 5625 posted 13 years ago by satie83
-webkit-appearance
0 1749 posted 13 years ago by thesmu
designing a simple horizontal tab menu by using ul and il elements with css.
0 2213 posted 13 years ago by codingforever99
A toolkit method for responsive development
0 1797 posted 13 years ago by fasterhorses
0 1759 posted 13 years ago by Alee
One of the great methods to load and work with icons in web pages is to load one image that is a collection of several icons and use any icon as needed, that reduces the number of server request and save bandwidth.
1 2410 posted 13 years ago by codingforever99
CSS to define an iframe to always be 100% of the container it's in.
0 1819 posted 13 years ago by leodruker
Using the same code in different browsers can be displayed in different ways. Resetting styles will help you to avoid such problems.
0 3098 posted 13 years ago by apphp-snippets
These 2 techniques can be used for alternating row-colors in a table.
0 3015 posted 13 years ago by apphp-snippets
Today with CSS3, you no longer need a background image for gradients. You can use CSS to add a gradient to the background of some elements on your page. For ex.: change the color hex values ("84c8d7" and "327fbd") to the gradient color you need.
1 2336 posted 13 years ago by apphp-snippets
This solution is based on Mozilla specific CSS extension. Other browsers will ignore this rule.
0 1871 posted 13 years ago by apphp-snippets
This can be used in casting shadows off block-level elements like divs, tables etc. (still not supported in IE7 and IE8). Parameters (from left to right): horizontal offset of the shadow, vertical offset of the shadow, blur radius (optional), spread...
1 1843 posted 13 years ago by apphp-snippets
Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).
0 1825 posted 13 years ago by apphp-snippets
Uses CSS3 attributes and psuedo elements to create a simple play button for web interfaces.
0 3110 posted 13 years ago by devowhippit