D — A–Z
Every CSS entry starting with D, grouped by kind. Pseudo-classes, pseudo-elements and types are filed by their first letter, ignoring the leading :, :: or <.
| Name | Description |
|---|---|
| Color | |
darkblue | Named colour #00008b. |
darkcyan | Named colour #008b8b. |
darkgoldenrod | Named colour #b8860b. |
darkgray | Named colour #a9a9a9. |
darkgreen | Named colour #006400. |
darkgrey | Named colour #a9a9a9. |
darkkhaki | Named colour #bdb76b. |
darkmagenta | Named colour #8b008b. |
darkolivegreen | Named colour #556b2f. |
darkorange | Named colour #ff8c00. |
darkorchid | Named colour #9932cc. |
darkred | Named colour #8b0000. |
darksalmon | Named colour #e9967a. |
darkseagreen | Named colour #8fbc8f. |
darkslateblue | Named colour #483d8b. |
darkslategray | Named colour #2f4f4f. |
darkslategrey | Named colour #2f4f4f. |
darkturquoise | Named colour #00ced1. |
darkviolet | Named colour #9400d3. |
deeppink | Named colour #ff1493. |
deepskyblue | Named colour #00bfff. |
dimgray | Named colour #696969. |
dimgrey | Named colour #696969. |
dodgerblue | Named colour #1e90ff. |
| Combinator | |
descendant combinator | A space between selectors: matches elements nested anywhere inside another. |
| Descriptor | |
descent-override | An @font-face descriptor that overrides the font's descent metric. |
| Function | |
drop-shadow() | A shadow that follows the shape of visible pixels. |
dynamic-range-limit-mix() | Mixes dynamic-range-limit values to set an in-between HDR limit. |
| Media feature | |
device-aspect-ratio | Deprecated: the aspect ratio of the whole device. Use aspect-ratio. |
device-height | Deprecated: the height of the whole device. Use height. |
device-posture | Whether a foldable device is flat or folded. |
device-width | Deprecated: the width of the whole device. Use width. |
display-mode | How an installed web app is shown: browser tab, standalone, full screen. |
dynamic-range | Whether the display supports high dynamic range. |
| Property | |
d | The path data of an SVG path element. |
direction | The base direction of text: left to right or right to left. |
display | Sets the outer and inner display type of a box, or removes it. |
dominant-baseline | Which baseline a box aligns its inline content to. |
dynamic-range-limit | Limits how bright HDR images and video may be shown. |
| Pseudo-class | |
:default | Matches the default button, option or checked-by-default control. |
:defined | Matches built-in elements and custom elements that have been defined. |
:dir() | Matches elements by text direction, ltr or rtl. |
:disabled | Matches disabled form controls. |
| Pseudo-element | |
::details-content | The expandable content of a details element. |
| Type | |
<dashed-ident> | An author-chosen name that starts with two hyphens. |
<dimension> | Any number with a unit attached. |
<display-box> | contents or none: whether an element generates a box. |
<display-inside> | The inner display type: flow, flow-root, table, flex, grid or ruby. |
<display-internal> | The internal parts of table and ruby layout, such as table-cell. |
<display-legacy> | inline-block, inline-flex and the other single-keyword inline forms. |
<display-listitem> | A list-item box that generates a marker. |
<display-outside> | The outer display type: block or inline. |
| Unit | |
deg | Degrees; a full circle is 360deg. |
dpcm | Dots per centimetre. |
dpi | Dots per inch. |
dppx | Dots per CSS pixel; 1dppx is 96dpi. |
dvb | 1% of the dynamic viewport in the block axis. |
dvh | 1% of the dynamic viewport height, tracking the toolbars. |
dvi | 1% of the dynamic viewport in the inline axis. |
dvmax | 1% of the dynamic viewport's larger dimension. |
dvmin | 1% of the dynamic viewport's smaller dimension. |
dvw | 1% of the dynamic viewport width, tracking the toolbars. |