Welcome To Snipplr


Everyone's Recent Snippets Tagged css



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 2762 posted 18 years ago by jonhenshaw
copy form maxdesign!
2 2627 posted 18 years ago by assbach
probably not the best way, but it seems to work
2 1526 posted 18 years ago by assbach
created some navigation buttons for a site i'm working on, this is without images in a horizontal arrangement. kevh.net has the article on creating the vertical navigation, and how to do both using images instead of native CSS styling
1 1451 posted 18 years ago by kevh
toggle a div via JS/CSS style
2 1263 posted 18 years ago by assbach
Used for rounding corners of a div. Need an upper left corner and an upper right corner. Example page is http://www.ruby-lang.org/en/documentation/quickstart/
3 1624 posted 19 years ago by ryanprel
1 1569 posted 19 years ago by markhope
0 1235 posted 19 years ago by whitetiger
1 1437 posted 19 years ago by whitetiger
0 3354 posted 19 years ago by whitetiger
0 1256 posted 19 years ago by natalie
0 1014 posted 19 years ago by natalie
0 1198 posted 19 years ago by natalie
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 1050 posted 19 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 2065 posted 19 years ago by zensir
1 1294 posted 19 years ago by danideu
2 1252 posted 19 years ago by masaya
10 2626 posted 19 years ago by designerd
1 1477 posted 19 years ago by Roshambo
1 1261 posted 19 years ago by mlange
Stop the background image flickering on IE by including this code in the header of your page. See link for more information.
2 1842 posted 19 years ago by 1man
1 1229 posted 19 years ago by gdonald
Caja con esquinas redondeadas y un borde de diferente color tambien redondeado. Más info en: http://www.curvycorners.net/
0 1116 posted 19 years ago by aurele
No es necesario redondear los vertices de la imagen para darle una apariencia tal. Más info en: http://www.curvycorners.net/
0 1226 posted 19 years ago by aurele
0 1077 posted 19 years ago by Corhol
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 14153 posted 19 years ago by zensir
0 1433 posted 19 years ago by markhope
1 1209 posted 19 years ago by soxiam