Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged css



Puts a red border around anything with an inline style. Prefix with "javascript:" and paste into the address bar to run on a page directly, or run with a load event.
1 274 posted 12 years ago by DaveChild
Save as the target of your link. Change http://assets.harkeydesign.net/css/diagnose.css to your own hosted version if you want guaranteed permanence.
1 267 posted 12 years ago by zachharkey
Smoothness of fade out animation needs work
0 262 posted 12 years ago by funkadelicsoul
A javscript snipped which will mark each table cell with a CSS class containing the cell's column number. This allows you to set the table column widths using just one CSS rule and without hand editing the table HTML code. This is to workaround the l...
0 449 posted 12 years ago by miohtama
Adds a class of hasJS to the html element, can be used for CSS styling.
1 376 posted 12 years ago by 1man
Ever wanted nested stylesheets? I have! Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following: JSS({ 'html': { 'body': { background: '#ff...
0 320 posted 12 years ago by dom111
changed to detect sring sheet first, then to try object extension.
2 334 posted 12 years ago by pdswan
fix for IE, adds getComputedStyle method for the object window and getPropertyValue method for the object, which returns getComputedStyle
1 1585 posted 12 years ago by Jman
6 404 posted 12 years ago by AlexWolfe
Add class external to all target=_blank links
4 392 posted 12 years ago by gfazioli
this is a combination of javascript and css and an image called letters.jpg that allows you to use any font you want for the first letter of each paragraph. Letters.jpg needs to have all the letters in uppercase in a row. See the link for a sample le...
0 246 posted 13 years ago by ezerick
setting additional css file for browsers under MacOS with JQuery
0 314 posted 13 years ago by DesTincT
1 304 posted 13 years ago by shellydennison
1 248 posted 13 years ago by Juego
curvyCorners is a free JavaScript program that will create on-the-fly rounded corners for any HTML DIV element, that look as good as any graphically created corners.
3 443 posted 13 years ago by jonhenshaw
Will toggle an element's style.visibility, or set it to visible/hidden as selected
0 278 posted 13 years ago by martinkas
0 289 posted 13 years ago by iTony
Jquery is awesome. Requires jquery!
4 270 posted 13 years ago by lagrangeapex
JS Fix for IE6 background image flickering on mouseover's
2 356 posted 14 years ago by brentg
時間帯によって、CSSを切り替える。
0 283 posted 14 years ago by fjm
0 259 posted 14 years ago by valcartei
Useful function for CSS DOM, returns the next element after the selected node. So you could style the element directly after a h1 element for example.
2 274 posted 14 years ago by 1man
A great script that will serve up stylesheets based on browser viewport size.
5 434 posted 14 years ago by aznprncritic
paste above in HEAD tag
1 277 posted 14 years ago by clapfouine
toggle a div via JS/CSS style
2 270 posted 14 years ago by assbach
1 311 posted 15 years ago by danideu