Welcome To Snipplr
Everyone's Recent CSS Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Learn how to use CSS to save the environment by not wasting unnecessary paper and ink.
1
848
posted 15 years ago by neal_grosskopf
This is sometimes not the best solution to a server caching your css files. But if you want to force a stubborn server to serve the most recent css file to the browser this seems to work. Could slow things down a touch, but for small css files not...
1
947
posted 15 years ago by jadedbat
With the ever increasing use of alternate media types I feel there is a need to deliver JavaScript targeted to these types of devices. This would allow alternate and modified content, as well as a customized user experience through the use of modern...
2
971
posted 15 years ago by localhorst
Learn how to style the HTML code element with CSS using CSS counters. CSS counters are the CSS equivalent to variables. In my tutorial I use CSS counters to emulate line numbers for my code block.
2
1108
posted 15 years ago by neal_grosskopf
A tutorial showing you how to give your images some style using only CSS rather than using Photoshop to give images a border/frame.
1
992
posted 15 years ago by neal_grosskopf
The following styles are designed to work with the markup from a custom theme override template called [upload_attachments.tpl.php](http://snipplr.com/view/11851)
1
950
posted 15 years ago by zachharkey
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
2
709
posted 15 years ago by mihael
Find out how to do rounded corners in CSS. A new method has recently come out that makes it extremely easy to implement.
3
1386
posted 15 years ago by neal_grosskopf
Test page to check the support of different CSS media types in browsers. If you go into Print Preview, for example, the Print media type should show as "In Use" if it is supported.
0
982
posted 15 years ago by wizard04
Centering a div with css is easy, but there are some compatibility quirks...
1
964
posted 15 years ago by jarnaldich
Figure 5. Selecting the first-child LI elements that descend from a UL element.
By combining the first-child pseudo-class with the adjacent-sibling selector, it's possible to pick children other than the first one. For example, you might want to a...
0
713
posted 15 years ago by davebowker
Grab http://blog.kissmetrics.com/common/images/required.png as example for a required image .
NOTE: You probably don't want to use this trcik, but rather go for the defacto standard of a red asterisk to mark something required. An asterisk is lang...
1
795
posted 15 years ago by berkes
This is a general set of style sheet commands that you can add to your CSS. It basically creates styles for very general actions that we take when creating layouts. This will make it easy to float, clear, and position elements by giving them a generi...
1
698
posted 15 years ago by AlexWolfe
Learn a new and seldom used method of clearing floats in CSS.
3
911
posted 15 years ago by neal_grosskopf
Glossy slide door black menu with blue hover styled which can be used on white backgrounds
1
863
posted 15 years ago by settysantu