Welcome To Snipplr


Everyone's Recent CSS Snippets Tagged css



1 ... 24 25 26 27 28 Next »
This is basically the top few lines of every CSS document I start with, just the basic selectors, no specific elements at this point in time. I like to place a general styling for almost every type of tag in my document so that as I later style my H...
1 242 posted 14 years ago by kevh
BODY {font-size:62.5%} This takes 16px down to 10px (16 x 0.625 = 10), which apart from being less huge is a nice round number. From now on it’s easy to think in pixels but still set sizes in terms of ems: 1em is 10px, 0.8em is 8px, 1.6em is 16px,...
3 473 posted 14 years ago by zensir
10 419 posted 15 years ago by designerd
To move the content away from the background image apply "padding-left" to the "LI" element. In this case "0.6em" has been used. As with vertical alignment, list padding will be determined by the size of your image.
35 2086 posted 15 years ago by zensir
0 336 posted 15 years ago by markhope
Table with style as in; http://24ways.org/examples/tables-with-style/table_columns.html
14 496 posted 15 years ago by zensir
Shows how to create a DIV box that is scrollable and looks like a IFRAME.
6 409 posted 15 years ago by hxseven
0 283 posted 15 years ago by Jaymoon
Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.
96 2669 posted 15 years ago by 1man
5 365 posted 15 years ago by Corhol
12 455 posted 15 years ago by masaya
A bug seems to occur when you add a negative margin to a list item in IE6. The background image applied to the list item gets repeated randomly and generally messes up. Add this little gem to your head to fix the problem. Remember to change the id ta...
11 455 posted 15 years ago by 1man
3 314 posted 15 years ago by soxiam
Simple styling for the links on a webpage using CSS. Sometimes hard to remember what order the have to be in for the :hover to work correctly. (Now fixed :)
2 460 posted 15 years ago by 1man
Markup example: See Big Curly Quotes Markup. Thx to difusion.org.uk. No need for images to make big quotes on a page, CSS does it for you. Tested in many browsers.
93 1911 posted 15 years ago by 1man
5 309 posted 15 years ago by 1man
Taken from bluerobot. Create a content div, set the width and the margin set to auto will align the div to the centre horizontally.
5 298 posted 15 years ago by 1man
Taken from Dead Centre. Adjust #content depending on the size div you need.
118 2655 posted 15 years ago by 1man
Una manera sencilla y muy limpia para utilizar tamaños de fuentes relativos y que todos los navegadores muestren el mismo tamaño de letra. Solo hay que asignar al "body" un tamaño de letra en "%" y luego al resto de elementos asignarle otro tam...
12 448 posted 15 years ago by Eloi
This snippet uses html>body instead of * html. Works in all modern-browsers, degrades to just height for older browsers.
9 511 posted 15 years ago by travis
1 ... 24 25 26 27 28 Next »