Welcome To Snipplr


Everyone's Recent Snippets Tagged css



via http://icant.co.uk/csstablegallery/
0 307 posted 14 years ago by fjm
STICKER - A valid, easy to use CSS sticky footer by Ryan Fait This is the basic CSS you need along with the one extra empty div and the wrapper required to achieve the effect. I suggest that you leave the * { margin: 0; } code in while testing a...
8 457 posted 14 years ago by daeliur
hoverで透明度
0 261 posted 14 years ago by fjm
時間帯によって、CSSを切り替える。
0 282 posted 14 years ago by fjm
0 257 posted 14 years ago by valcartei
0 344 posted 14 years ago by jccovey
CSS image replacement with no extra span needed.
3 290 posted 14 years ago by 1man
Say you want a containing block with 2 floating elements to expand around the floating element, usually this wouldn't happen since the container has no height because the floating elements are out of the usual flow. The method below fixes this pro...
3 286 posted 14 years ago by 1man
Useful for setting transparent dropdowns, etc.
6 332 posted 14 years ago by pmusaraj
This code centers text vertical.
2 281 posted 14 years ago by narmolanya
This solution is cool for screen readers, because they also read the text content.
2 260 posted 14 years ago by narmolanya
3 354 posted 14 years ago by soxiam
Wer mal nur den IE7 mit css ansprechen will oder muss zb. weil der IE7 einen bestimmten bug hat, kann dies folgendermaßen tun. *:first-child+html Wenn man also zb. die schriftfarbe der css class “meineklasse” nur für den IE7 verändern wi...
0 321 posted 14 years ago by smilylion
Very simple navigation. Style the id using CSS. Allows you to highlight the current page with CSS.
1 384 posted 14 years ago by 1man
text-index: -9999px; などして置換している場合、この数字の通りにアウトライン (クリックした際の点線) がヨコに伸びてしまう。 これを解決する方法。
1 459 posted 14 years ago by masaya
1 311 posted 14 years ago by pablazo
Removes the default styling different browsers use, so you minimise cross browser problems.
1 291 posted 14 years ago by 1man
Example off ALA, pleasing typography layout for the web. Based on the grid system.
4 405 posted 14 years ago by 1man
This template is for an XHTML 1.1 document with an external stylesheet.
0 322 posted 14 years ago by cpjobling
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 270 posted 14 years ago by 1man
0 351 posted 14 years ago by gndprx
A low-tech but useful technique that uses only CSS. After placing the css in your stylesheet, insert this just below the body tag of your page: "". Whenever the images are referenced throughout your pages they will now be loaded from cache.
65 4349 posted 14 years ago by aznprncritic
A great script that will serve up stylesheets based on browser viewport size.
5 427 posted 14 years ago by aznprncritic
paste above in HEAD tag
1 274 posted 14 years ago by clapfouine
Les propriétés racourcies Exemple avec la propriété raccourcie 'font': En clair vous pouvez résumer ça: p { font-size: 1em; line-height: 1.5em; font-weight: bold; font-style: italic; font-variant: small-caps; font-family: verdana...
3 339 posted 14 years ago by clapfouine
Most of these come from the book "CSS Mastery: Advanced Web Standards Solutions," a must-read by Andy Budd (seriously, even if you've used CSS for years, you'll learn a good deal of new things from this book; beginners should read this imme...
2 225 posted 14 years ago by pckujawa
IE6 and before doesn't support :hover in CSS (except for anchors). You can use this script to make hovers work in IE. Just add the following line to your stylesheet (this assumes the path of the file -- you may need to change it to reflect your paths...
7 704 posted 14 years ago by jonhenshaw