Welcome To Snipplr
Everyone's Recent Snippets Tagged css
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
https://www.chrisjmendez.com/2008/06/11/how-to-use-ems-when-youre-already-comfortable-with-pixels/
2
810
posted 16 years ago by chrisaiv
Use this function to create a unique class name based on the page's url. It makes for a great way to drill down with specificity in CSS later by placing this on the ID or as a Class on the body tag.
1
926
posted 16 years ago by neal_grosskopf
Applications:
1. Centered block with unknown width
2. Simple block which can have float style (f.e. horizontal menu)
1
749
posted 16 years ago by kossmoss
Using CSS3 selectors, highlight links to deleted pages and 404 pages. Also highlight function calls to deleted javascript using this CSS technique.
4
997
posted 16 years ago by neal_grosskopf
Find deprecated elements and attributes using CSS. Simply add the CSS below to the end of your style sheet and it will highlight bad code.
5
863
posted 16 years ago by visuallyspun
Bugfix/Lösungsvorschlag:
Es ist offensichtlich, dass die Zelle mit der ID cell3467 und dem definierten "margin-right: 3.09%" falsch berechnet wird - nämlich mit realen 16 Pixeln anstatt 8 - und auf den obersten Basis-Wert der "DIV width" zurück...
1
866
posted 16 years ago by bassdas
Toolbox CSS is styling information that has nothing uniquely to do with any particular website. These are a collection of common styles that can be useful on any web project. How many times have you written a class for clearing a float? Too many, is...
18
5356
posted 16 years ago by visuallyspun
IE 5.5 to 6 don't support generic PNG with Alpha-Channel
To get the advantage of PNGs use the akward AlphaImageLoader-filter (AIL) as described on the msdn site ( http://msdn.microsoft.com/en-us/library/ms532969(VS.85).aspx ).
But because the AIL...
3
980
posted 16 years ago by HerrSerker
In FF the page will "jump around" when moving from page to page due to the scrollbars. Find out how to make that stop.
2
1057
posted 16 years ago by neal_grosskopf
Consolidate all your various stylesheets into one and cut down on requests to your server by placing your screen, print & handheld stylesheets into one stylesheet
1
805
posted 16 years ago by neal_grosskopf
Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).
1
732
posted 16 years ago by will
Change selection color using CSS. Works in most modern browsers except for IE.
3
992
posted 16 years ago by neal_grosskopf