CSS Hacks. View full post about browser-specific CSS Hacks here.
Red if * html matches in this browser Red if *:first-child+html matches in this browser Red if html>body matches in this browser Red if html>/**/body matches in this browser Red if html:first-child matches in this browser Red if html[xmlns*=""] body:last-child matches in this browser Red if body:nth-of-type(1) matches in this browser. Capucine.
Grid. Instant Documentation Search. Code Snippets. Web Fonts. Tools. LESS « The Dynamic Stylesheet language. File: INDENTED_SYNTAX. Sass’s indented syntax (also known simply as “Sass”) is designed to provide a more concise and, for some, more aesthetically appealing alternative to the CSS-based SCSS syntax.
It’s not compatible with CSS; instead of using { and } to delimit blocks of styles, it uses indentation, and instead of using semicolons to separate statements it uses newlines. This usually leads to substantially less text when saying the same thing. Each statement in Sass, such as property declarations and selectors, must be placed on its own line. In addition, everything that would be within { and } after a statement must be on a new line and indented one level deeper than that statement. For example, this CSS: would be this Sass: #main color: blue font-size: 0.3em Similarly, this SCSS: #main color: blue font-size: 0.3em a font: weight: bold family: serif &:hover background-color: #eee Sass Syntax Differences Property Syntax The indented syntax supports two ways of declaring CSS properties. Multiline Selectors @import. The 30 CSS Selectors you Must Memorize.
Life at the bleeding edge (of web standards) CSS-Tricks. Web colors. Web colors are colors used in displaying web pages, and the methods for describing and specifying those colors.
Colors may be specified as an RGB triplet or in hexadecimal format (a hex triplet). They may also be specified according to their common English names in some cases. Often a color tool or other graphics software is used to generate color values. In some uses, hexadecimal color codes are specified with notation using a leading number sign (#).[1][2] A color is specified according to the intensity of its red, green and blue components, each represented by eight bits.
Thus, there are 24 bits used to specify a web color, and 16,777,216 colors that may be so specified. Hex triplet[edit] A hex triplet is a six-digit, three-byte hexadecimal number used in HTML, CSS, SVG, and other computing applications, to represent colors. Byte 1: red value (color type red) Byte 2: green value (color type green) Byte 3: blue value (color type blue) Shorthand hexadecimal form[edit] HTML color names[edit]