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
857
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
992
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
793
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
1072
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
943
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
933
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
5576
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
1056
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
1118
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
867
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
793
posted 16 years ago by will
Change selection color using CSS. Works in most modern browsers except for IE.
3
1055
posted 16 years ago by neal_grosskopf