Welcome To Snipplr
Everyone's Recent Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This finds individual CSS attributes, i.e. "foo : bar;" or "bar : 2px solid foo;"
4
1484
posted 15 years ago by mocha0range
This finds CSS style names, i.e. "#foo" or "#foo, .bar"
Note: You'll need to chomp the trailing "\s{" off the end of the matched string. I matched it just to make sure that it didn't get anything else.
5
862
posted 15 years ago by mocha0range
This finds the entire style definition - from #foo to the last brace.
i.e. ".foo, #bar { foo: bar; foo: bar; bar: foo; }"
4
803
posted 15 years ago by mocha0range
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
735
posted 15 years ago by carriegates
All credit to Richard Clarke, code taken from HTML 5 Doctor. Posted here for quick access from TextMate.
6
3181
posted 15 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
608
posted 15 years ago by myrebel420
how to link ie only stylesheets and stylesheets by generation of ie
2
910
posted 15 years ago by thesmu
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0
949
posted 15 years ago by iloveitaly
A custom compression script I use for auto compression and gzip compression of my css & files. Also allows for 'debug' mode (uncompressed). You simply include the core.css & core.js in your <head>
0
866
posted 15 years ago by iloveitaly
Easily Modify and Layout html with classes that on the fly create margins
0
798
posted 15 years ago by chrisjlee
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
1464
posted 15 years ago by miohtama