Welcome To Snipplr
Everyone's Recent CSS Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
original source - http://www.filamentgroup.com/lab/update_styling_the_button_element_with_css_sliding_doors_now_with_image_spr/
Overides default styling
0
682
posted 14 years ago by tennison
CSS code for input buttons with background images and rounded corners. For cases when it is not possible to use Progressive Enhancement (ie. when you need to have rounded corners in IE6+).
See Customized buttons under HTML for markup.
0
586
posted 14 years ago by jofan
This implements a pure CSS technique for creating triangles. A great practical usage of this is Web 2.0 style comment/speach bubbles. Demo: http://www.adamcoulombe.info/lab/css/comment-bubbles.html
1
948
posted 14 years ago by adamcoulombe
Requires markup, yes. Cross-Browser compatible, yes. Requires images, no.
0
686
posted 14 years ago by vagrantradio
When creating a drop-down menu/hover menu, the subitems will usually go as wide as the parent li. To make them go as wide as the value of their containing li you have to add a white-space: nowrap.
If you still run into issues you may have to ma...
1
752
posted 14 years ago by smoothdzion
please let me know if you know of some others... just to complete the collection.
1
758
posted 14 years ago by c4ptivate
I just thought of a great new way to organize your CSS attributes: use the first letter of a each attribute to write words that other developers will find hilarious!
0
991
posted 14 years ago by peterwooley