repo_id stringlengths 22 103 | file_path stringlengths 41 147 | content stringlengths 181 193k | __index_level_0__ int64 0 0 |
|---|---|---|---|
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/color-scheme/index.md | ---
title: color-scheme
slug: Web/CSS/color-scheme
page-type: css-property
browser-compat: css.properties.color-scheme
---
{{CSSRef}}
The **`color-scheme`** [CSS](/en-US/docs/Web/CSS) property allows an element to indicate which color schemes it can comfortably be rendered in.
Common choices for operating system col... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/syntax/index.md | ---
title: Syntax
slug: Web/CSS/Syntax
page-type: guide
---
{{CSSRef}}
The basic goal of the Cascading Stylesheet ([CSS](/en-US/docs/Web/CSS)) language is to allow a browser engine to paint elements of the page with specific features, like colors, positioning, or decorations. The _CSS syntax_ reflects this goal and i... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/initial-letter/index.md | ---
title: initial-letter
slug: Web/CSS/initial-letter
page-type: css-property
status:
- experimental
browser-compat: css.properties.initial-letter
---
{{CSSRef}}{{SeeCompatTable}}
The `initial-letter` CSS property sets styling for dropped, raised, and sunken initial letters.
## Syntax
```css
/* Keyword values */... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/line-height-step/index.md | ---
title: line-height-step
slug: Web/CSS/line-height-step
page-type: css-property
status:
- experimental
browser-compat: css.properties.line-height-step
---
{{CSSRef}}{{SeeCompatTable}}
The **`line-height-step`** CSS property sets the step unit for line box heights. When the property is set, line box heights are r... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/widows/index.md | ---
title: widows
slug: Web/CSS/widows
page-type: css-property
browser-compat: css.properties.widows
---
{{CSSRef}}
The **`widows`** [CSS](/en-US/docs/Web/CSS) property sets the minimum number of lines in a block container that must be shown at the _top_ of a [page](/en-US/docs/Web/CSS/CSS_paged_media), region, or [c... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-margin-inline/index.md | ---
title: scroll-margin-inline
slug: Web/CSS/scroll-margin-inline
page-type: css-shorthand-property
browser-compat: css.properties.scroll-margin-inline
---
{{CSSRef}}
The `scroll-margin-inline` [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets the scroll margins of an element in the inline dimensio... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-language-override/index.md | ---
title: font-language-override
slug: Web/CSS/font-language-override
page-type: css-property
browser-compat: css.properties.font-language-override
---
{{CSSRef}}
The **`font-language-override`** CSS property controls the use of language-specific glyphs in a typeface.
By default, HTML's `lang` attribute tells brows... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_text_decoration/index.md | ---
title: CSS text decoration
slug: Web/CSS/CSS_text_decoration
page-type: css-module
spec-urls: https://drafts.csswg.org/css-text-decor/
---
{{CSSRef}}
The **CSS text decoration** module defines features relating to text decoration, such as underlines, text shadows, and emphasis marks.
## Reference
### Properties... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/align-items/index.md | ---
title: align-items
slug: Web/CSS/align-items
page-type: css-property
browser-compat: css.properties.align-items
---
{{CSSRef}}
The [CSS](/en-US/docs/Web/CSS) **`align-items`** property sets the {{cssxref("align-self")}} value on all direct children as a group. In Flexbox, it controls the alignment of items on the... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/inheritance/index.md | ---
title: Inheritance
slug: Web/CSS/Inheritance
page-type: guide
---
{{CSSRef}}
In CSS, **inheritance** controls what happens when no value is specified for a property on an element.
CSS properties can be categorized in two types:
- **inherited properties**, which by default are set to the [computed value](/en-US/... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/overflow-y/index.md | ---
title: overflow-y
slug: Web/CSS/overflow-y
page-type: css-property
browser-compat: css.properties.overflow-y
---
{{CSSRef}}
The **`overflow-y`** [CSS](/en-US/docs/Web/CSS) property sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overfl... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_-moz-color-swatch/index.md | ---
title: "::-moz-color-swatch"
slug: Web/CSS/::-moz-color-swatch
page-type: css-pseudo-element
status:
- non-standard
browser-compat: css.selectors.-moz-color-swatch
---
{{CSSRef}}{{Non-standard_header}}
The **`::-moz-color-swatch`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements)... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-inline-style/index.md | ---
title: border-inline-style
slug: Web/CSS/border-inline-style
page-type: css-property
browser-compat: css.properties.border-inline-style
---
{{CSSRef}}
The **`border-inline-style`** [CSS](/en-US/docs/Web/CSS) property defines the style of the logical inline borders of an element, which maps to a physical border st... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_logical_properties_and_values/index.md | ---
title: CSS logical properties and values
slug: Web/CSS/CSS_logical_properties_and_values
page-type: css-module
spec-urls: https://drafts.csswg.org/css-logical/
---
{{CSSRef}}
The **CSS logical properties and values** module introduces logical properties and values that provide the ability to control layout throug... | 0 |
data/mdn-content/files/en-us/web/css/css_logical_properties_and_values | data/mdn-content/files/en-us/web/css/css_logical_properties_and_values/sizing/index.md | ---
title: Logical properties for sizing
slug: Web/CSS/CSS_logical_properties_and_values/Sizing
page-type: guide
---
{{CSSRef}}
In this guide we will explain the flow-relative mappings between physical dimension properties and logical properties used for sizing elements on our pages.
When specifying the size of an i... | 0 |
data/mdn-content/files/en-us/web/css/css_logical_properties_and_values | data/mdn-content/files/en-us/web/css/css_logical_properties_and_values/floating_and_positioning/index.md | ---
title: Logical properties for floating and positioning
slug: Web/CSS/CSS_logical_properties_and_values/Floating_and_positioning
page-type: guide
---
{{CSSRef}}
The [Logical Properties and Values specification](https://drafts.csswg.org/css-logical/) contains logical mappings for the physical values of {{cssxref("f... | 0 |
data/mdn-content/files/en-us/web/css/css_logical_properties_and_values | data/mdn-content/files/en-us/web/css/css_logical_properties_and_values/basic_concepts_of_logical_properties_and_values/index.md | ---
title: Basic concepts of logical properties and values
slug: Web/CSS/CSS_logical_properties_and_values/Basic_concepts_of_logical_properties_and_values
page-type: guide
---
{{CSSRef}}
The Logical Properties and Values Specification introduces flow-relative mappings for many of the properties and values in CSS. Thi... | 0 |
data/mdn-content/files/en-us/web/css/css_logical_properties_and_values | data/mdn-content/files/en-us/web/css/css_logical_properties_and_values/margins_borders_padding/index.md | ---
title: Logical properties for margins, borders, and padding
slug: Web/CSS/CSS_logical_properties_and_values/Margins_borders_padding
page-type: guide
---
{{CSSRef}}
The [Logical Properties and Values specification](https://drafts.csswg.org/css-logical/) defines flow-relative mappings for the various margin, border... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_-moz-first-node/index.md | ---
title: ":-moz-first-node"
slug: Web/CSS/:-moz-first-node
page-type: css-pseudo-class
status:
- non-standard
---
{{Non-standard_header}}{{CSSRef}}
The **`:-moz-first-node`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) is a [Mozilla extension](/en-US/docs/Web/CSS/Mozilla_Extensio... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/angle-percentage/index.md | ---
title: <angle-percentage>
slug: Web/CSS/angle-percentage
page-type: css-type
browser-compat: css.types.angle-percentage
---
{{CSSRef}}
The **`<angle-percentage>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) represents a value that can be either a {{Cssxref("angle")}} or a {{Cssxref("per... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/animation-range-end/index.md | ---
title: animation-range-end
slug: Web/CSS/animation-range-end
page-type: css-property
status:
- experimental
browser-compat: css.properties.animation-range-end
---
{{CSSRef}}{{SeeCompatTable}}
The **`animation-range-end`** [CSS](/en-US/docs/Web/CSS) property is used to set the end of an animation's attachment ra... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/view-timeline-inset/index.md | ---
title: view-timeline-inset
slug: Web/CSS/view-timeline-inset
page-type: css-property
status:
- experimental
browser-compat: css.properties.view-timeline-inset
---
{{CSSRef}}{{SeeCompatTable}}
The **`view-timeline-inset`** [CSS](/en-US/docs/Web/CSS) property is used to specify one or two values representing an a... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_shapes/index.md | ---
title: CSS shapes
slug: Web/CSS/CSS_shapes
page-type: css-module
spec-urls: https://drafts.csswg.org/css-shapes/
---
{{CSSRef}}
The **CSS shapes** module describes geometric shapes that can be in CSS. For the [Level 1 specification](https://drafts.csswg.org/css-shapes/), CSS shapes can be applied to floating elem... | 0 |
data/mdn-content/files/en-us/web/css/css_shapes | data/mdn-content/files/en-us/web/css/css_shapes/from_box_values/index.md | ---
title: Shapes from box values
slug: Web/CSS/CSS_shapes/From_box_values
page-type: guide
---
{{CSSRef}}
A straightforward way to create a shape is to use a value from the CSS Box Model. This article explains how to do this.
The [box values](https://drafts.csswg.org/css-shapes-1/#shapes-from-box-values) allowable ... | 0 |
data/mdn-content/files/en-us/web/css/css_shapes | data/mdn-content/files/en-us/web/css/css_shapes/basic_shapes/index.md | ---
title: Basic shapes
slug: Web/CSS/CSS_shapes/Basic_shapes
page-type: guide
---
{{CSSRef}}
CSS Shapes can be defined using the {{cssxref("<basic-shape>")}} type, and in this guide I'll explain how each of the different values accepted by this type work. They range from simple circles to complex polygons.
Be... | 0 |
data/mdn-content/files/en-us/web/css/css_shapes | data/mdn-content/files/en-us/web/css/css_shapes/shapes_from_images/index.md | ---
title: Shapes from images
slug: Web/CSS/CSS_shapes/Shapes_from_images
page-type: guide
---
{{CSSRef}}
In this guide, we will take a look at how we can create a shape from an image file with an alpha channel or even from a CSS Gradient. This is a very flexible way to create shapes. Rather than drawing a path with ... | 0 |
data/mdn-content/files/en-us/web/css/css_shapes | data/mdn-content/files/en-us/web/css/css_shapes/overview_of_shapes/index.md | ---
title: Overview of shapes
slug: Web/CSS/CSS_shapes/Overview_of_shapes
page-type: guide
---
{{CSSRef}}
The [CSS Shapes Level 1 Specification](https://www.w3.org/TR/css-shapes/) describes geometric shapes in CSS. They are, in Level 1 of the specification, designed to be applied to floated items. This article provid... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-top/index.md | ---
title: border-top
slug: Web/CSS/border-top
page-type: css-shorthand-property
browser-compat: css.properties.border-top
---
{{CSSRef}}
The **`border-top`** [shorthand](/en-US/docs/Web/CSS/Shorthand_properties) [CSS](/en-US/docs/Web/CSS) property sets all the properties of an element's top [border](/en-US/docs/Web/... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_not/index.md | ---
title: ":not()"
slug: Web/CSS/:not
page-type: css-pseudo-class
browser-compat: css.selectors.not
---
{{CSSRef}}
The **`:not()`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents elements that do not match a list of selectors. Since it prevents specific items from being sele... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/min-content/index.md | ---
title: min-content
slug: Web/CSS/min-content
page-type: css-keyword
browser-compat: css.properties.width.min-content
---
{{CSSRef}}
The `min-content` sizing keyword represents the intrinsic minimum width of the content. For text content this means that the content will take all soft-wrapping opportunities, becomi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/clip-path/index.md | ---
title: clip-path
slug: Web/CSS/clip-path
page-type: css-property
browser-compat: css.properties.clip-path
---
{{CSSRef}}
The **`clip-path`** [CSS](/en-US/docs/Web/CSS) property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those outs... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/clip-path/mdn.svg | <svg xmlns="http://www.w3.org/2000/svg" height="200" width="226.855"><defs><linearGradient gradientTransform="translate(-353.18 -4908.622) scale(6.99647)" gradientUnits="userSpaceOnUse" id="a" y2="701.6" x2="66.7" y1="730.2" x1="66.7"><stop offset="0" style="stop-color:#2075bc;stop-opacity:1"/><stop offset="1" style="s... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/dimension/index.md | ---
title: <dimension>
slug: Web/CSS/dimension
page-type: css-type
browser-compat: css.types.dimension
---
{{CSSRef}}
The **`<dimension>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) represents a {{CSSxRef("<number>")}} with a unit attached to it, for example `10px`.
CSS uses dimensi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/page-break-after/index.md | ---
title: page-break-after
slug: Web/CSS/page-break-after
page-type: css-property
browser-compat: css.properties.page-break-after
---
{{CSSRef}}
> **Warning:** This property has been replaced by the {{cssxref("break-after")}} property.
The **`page-break-after`** CSS property adjusts page breaks _after_ the current ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/transition/index.md | ---
title: transition
slug: Web/CSS/transition
page-type: css-shorthand-property
browser-compat: css.properties.transition
---
{{CSSRef}}
The **`transition`** [CSS](/en-US/docs/Web/CSS) property is a [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) for {{ cssxref("transition-property") }}, {{ cssxref("t... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/counter-set/index.md | ---
title: counter-set
slug: Web/CSS/counter-set
page-type: css-property
browser-compat: css.properties.counter-set
---
{{CSSRef}}
The **`counter-set`** [CSS](/en-US/docs/Web/CSS) property sets [CSS counters](/en-US/docs/Web/CSS/CSS_counter_styles/Using_CSS_counters) to the given values.
The `counter-set` property w... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/padding-inline-end/index.md | ---
title: padding-inline-end
slug: Web/CSS/padding-inline-end
page-type: css-property
browser-compat: css.properties.padding-inline-end
---
{{CSSRef}}
The **`padding-inline-end`** [CSS](/en-US/docs/Web/CSS) property defines the logical inline end padding of an element, which maps to a physical padding depending on t... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_out-of-range/index.md | ---
title: ":out-of-range"
slug: Web/CSS/:out-of-range
page-type: css-pseudo-class
browser-compat: css.selectors.out-of-range
---
{{CSSRef}}
The **`:out-of-range`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an {{htmlelement("input")}} element whose current value is outsi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_nesting/index.md | ---
title: CSS nesting
slug: Web/CSS/CSS_nesting
page-type: css-module
spec-urls: https://drafts.csswg.org/css-nesting-1/
---
{{CSSRef}}
The **CSS nesting** module defines a syntax for nesting selectors, providing the ability to nest one style rule inside another, with the selector of the child rule relative to the s... | 0 |
data/mdn-content/files/en-us/web/css/css_nesting | data/mdn-content/files/en-us/web/css/css_nesting/nesting_at-rules/index.md | ---
title: CSS nesting at-rules
slug: Web/CSS/CSS_nesting/Nesting_at-rules
page-type: guide
---
{{CSSRef}}
Any [at-rule](/en-US/docs/Web/CSS/At-rule) whose body contains style rules can be nested inside another style rule using CSS nesting. Style rules nested inside at-rules take their nesting selector definition fro... | 0 |
data/mdn-content/files/en-us/web/css/css_nesting | data/mdn-content/files/en-us/web/css/css_nesting/nesting_and_specificity/index.md | ---
title: CSS nesting and specificity
slug: Web/CSS/CSS_nesting/Nesting_and_specificity
page-type: guide
---
{{CSSRef}}
The {{cssxref('specificity')}} of the `&` nesting selector is calculated using the largest specificity in the associated selector list. This is identical to how specificity is calculated when using... | 0 |
data/mdn-content/files/en-us/web/css/css_nesting | data/mdn-content/files/en-us/web/css/css_nesting/using_css_nesting/index.md | ---
title: Using CSS nesting
slug: Web/CSS/CSS_nesting/Using_CSS_nesting
page-type: guide
---
{{CSSRef}}
The [CSS nesting](/en-US/docs/Web/CSS/CSS_nesting) module allows you to write your stylesheets so that they are easier to read, more modular, and more maintainable. As you are not constantly repeating selectors, t... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/text-overflow/index.md | ---
title: text-overflow
slug: Web/CSS/text-overflow
page-type: css-property
browser-compat: css.properties.text-overflow
---
{{CSSRef}}
The **`text-overflow`** [CSS](/en-US/docs/Web/CSS) property sets how hidden overflow content is signaled to users. It can be clipped, display an ellipsis ('`…`'), or display a custo... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_has/index.md | ---
title: ":has()"
slug: Web/CSS/:has
page-type: css-pseudo-class
browser-compat: css.selectors.has
---
{{CSSRef}}
The functional **`:has()`** CSS [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an element if any of the [relative selectors](/en-US/docs/Web/CSS/CSS_selectors/Selector_structure#relative_... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/@container/index.md | ---
title: "@container"
slug: Web/CSS/@container
page-type: css-at-rule
browser-compat: css.at-rules.container
---
{{CSSRef}}
The **`@container`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) is a conditional group rule that applies styles to a [containment context](/en-US/docs/Web/CSS/CSS_contai... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/inline_formatting_context/index.md | ---
title: Inline formatting context
slug: Web/CSS/Inline_formatting_context
page-type: guide
---
{{CSSRef}}
This article explains the inline formatting context.
## Core concepts
The inline formatting context is part of the visual rendering of a web page. Inline boxes are laid out one after the other, in the direct... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_-moz-handler-disabled/index.md | ---
title: ":-moz-handler-disabled"
slug: Web/CSS/:-moz-handler-disabled
page-type: css-pseudo-class
status:
- non-standard
---
{{CSSRef}} {{Non-standard_header}}
The **`:-moz-handler-disabled`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) is a [Mozilla extension](/en-US/docs/Web/C... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/image-rendering/index.md | ---
title: image-rendering
slug: Web/CSS/image-rendering
page-type: css-property
browser-compat: css.properties.image-rendering
---
{{CSSRef}}
The **`image-rendering`** [CSS](/en-US/docs/Web/CSS) property sets an image scaling algorithm. The property applies to an element itself, to any images set in its other proper... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/@font-palette-values/index.md | ---
title: "@font-palette-values"
slug: Web/CSS/@font-palette-values
page-type: css-at-rule
browser-compat: css.at-rules.font-palette-values
---
{{CSSRef}}
The **`@font-palette-values`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) allows you to customize the default values of [font-palette](/en-... | 0 |
data/mdn-content/files/en-us/web/css/@font-palette-values | data/mdn-content/files/en-us/web/css/@font-palette-values/font-family/index.md | ---
title: font-family
slug: Web/CSS/@font-palette-values/font-family
page-type: css-at-rule-descriptor
browser-compat: css.at-rules.font-palette-values.font-family
---
{{CSSRef}}
The [@font-palette-values](/en-US/docs/Web/CSS/@font-palette-values) [descriptor](/en-US/docs/Glossary/CSS_Descriptor) **`font-family`** i... | 0 |
data/mdn-content/files/en-us/web/css/@font-palette-values | data/mdn-content/files/en-us/web/css/@font-palette-values/base-palette/index.md | ---
title: base-palette
slug: Web/CSS/@font-palette-values/base-palette
page-type: css-at-rule-descriptor
browser-compat: css.at-rules.font-palette-values.base-palette
---
{{CSSRef}}
The **`base-palette`** CSS [descriptor](/en-US/docs/Glossary/CSS_Descriptor) is used to specify the name or index of a pre-defined pale... | 0 |
data/mdn-content/files/en-us/web/css/@font-palette-values | data/mdn-content/files/en-us/web/css/@font-palette-values/override-colors/index.md | ---
title: override-colors
slug: Web/CSS/@font-palette-values/override-colors
page-type: css-at-rule-descriptor
browser-compat: css.at-rules.font-palette-values.override-colors
---
{{CSSRef}}
The **`override-colors`** CSS [descriptor](/en-US/docs/Glossary/CSS_Descriptor) is used to override colors in the chosen [base... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/place-self/index.md | ---
title: place-self
slug: Web/CSS/place-self
page-type: css-shorthand-property
browser-compat: css.properties.place-self
---
{{CSSRef}}
The **`place-self`** [CSS](/en-US/docs/Web/CSS) [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) allows you to align an individual item in both the block and inline d... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/offset-anchor/index.md | ---
title: offset-anchor
slug: Web/CSS/offset-anchor
page-type: css-property
browser-compat: css.properties.offset-anchor
---
{{CSSRef}}
The **`offset-anchor`** [CSS](/en-US/docs/Web/CSS) property specifies the point inside the box of an element traveling along an {{cssxref("offset-path")}} that is actually moving al... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_autofill/index.md | ---
title: ":autofill"
slug: Web/CSS/:autofill
page-type: css-pseudo-class
browser-compat: css.selectors.autofill
---
{{CSSRef}}
The **`:autofill`** CSS [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches when an {{HTMLElement("input")}} element has its value autofilled by the browser. The class stops matching... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/forced-color-adjust/index.md | ---
title: forced-color-adjust
slug: Web/CSS/forced-color-adjust
page-type: css-property
browser-compat: css.properties.forced-color-adjust
---
{{CSSRef}}
The **`forced-color-adjust`** CSS property allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS.... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-block-start/index.md | ---
title: border-block-start
slug: Web/CSS/border-block-start
page-type: css-shorthand-property
browser-compat: css.properties.border-block-start
---
{{CSSRef}}
The **`border-block-start`** [CSS](/en-US/docs/Web/CSS) property is a [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) for setting the individ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-bottom/index.md | ---
title: border-bottom
slug: Web/CSS/border-bottom
page-type: css-shorthand-property
browser-compat: css.properties.border-bottom
---
{{CSSRef}}
The **`border-bottom`** [shorthand](/en-US/docs/Web/CSS/Shorthand_properties) [CSS](/en-US/docs/Web/CSS) property sets an element's bottom [border](/en-US/docs/Web/CSS/bor... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-collapse/index.md | ---
title: border-collapse
slug: Web/CSS/border-collapse
page-type: css-property
browser-compat: css.properties.border-collapse
---
{{CSSRef}}
The **`border-collapse`** [CSS](/en-US/docs/Web/CSS) property sets whether cells inside a {{htmlElement("table")}} have shared or separate borders.
{{EmbedInteractiveExample(... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/shape-margin/index.md | ---
title: shape-margin
slug: Web/CSS/shape-margin
page-type: css-property
browser-compat: css.properties.shape-margin
---
{{CSSRef}}
The **`shape-margin`** [CSS](/en-US/docs/Web/CSS) property sets a margin for a CSS shape created using {{cssxref("shape-outside")}}.
{{EmbedInteractiveExample("pages/css/shape-margin.... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-synthesis-weight/index.md | ---
title: font-synthesis-weight
slug: Web/CSS/font-synthesis-weight
page-type: css-property
browser-compat: css.properties.font-synthesis-weight
---
{{CSSRef}}
The **`font-synthesis-weight`** [CSS](/en-US/docs/Web/CSS) property lets you specify whether or not the browser may synthesize the bold typeface when it is m... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/orphans/index.md | ---
title: orphans
slug: Web/CSS/orphans
page-type: css-property
browser-compat: css.properties.orphans
---
{{CSSRef}}
The **`orphans`** [CSS](/en-US/docs/Web/CSS) property sets the minimum number of lines in a block container that must be shown at the _bottom_ of a [page](/en-US/docs/Web/CSS/CSS_paged_media), region... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-stretch/index.md | ---
title: font-stretch
slug: Web/CSS/font-stretch
page-type: css-property
browser-compat: css.properties.font-stretch
---
{{CSSRef}}
The **`font-stretch`** [CSS](/en-US/docs/Web/CSS) property selects a normal, condensed, or expanded face from a font.
{{EmbedInteractiveExample("pages/css/font-stretch.html")}}
## Sy... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-style/index.md | ---
title: font-style
slug: Web/CSS/font-style
page-type: css-property
browser-compat: css.properties.font-style
---
{{CSSRef}}
The **`font-style`** [CSS](/en-US/docs/Web/CSS) property sets whether a font should be styled with a normal, italic, or oblique face from its {{cssxref("font-family")}}.
{{EmbedInteractiveE... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_spelling-error/index.md | ---
title: "::spelling-error"
slug: Web/CSS/::spelling-error
page-type: css-pseudo-element
browser-compat: css.selectors.spelling-error
---
{{CSSRef}}
The **`::spelling-error`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements) represents a text segment which the {{glossary("user agent"... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-end-start-radius/index.md | ---
title: border-end-start-radius
slug: Web/CSS/border-end-start-radius
page-type: css-property
browser-compat: css.properties.border-end-start-radius
---
{{CSSRef}}
The **`border-end-start-radius`** [CSS](/en-US/docs/Web/CSS) property defines a logical border radius on an element, which maps to a physical border ra... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/margin-block-end/index.md | ---
title: margin-block-end
slug: Web/CSS/margin-block-end
page-type: css-property
browser-compat: css.properties.margin-block-end
---
{{CSSRef}}
The **`margin-block-end`** [CSS](/en-US/docs/Web/CSS) property defines the logical block end margin of an element, which maps to a physical margin depending on the element'... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_functions/index.md | ---
title: CSS value functions
slug: Web/CSS/CSS_Functions
page-type: guide
---
{{CSSRef}}
**CSS value functions** are statements that invoke special data processing or calculations to return a [CSS](/en-US/docs/Web/CSS) [value](/en-US/docs/Web/CSS/CSS_Values_and_Units) for a CSS property. CSS value functions represe... | 0 |
data/mdn-content/files/en-us/web/css/css_functions | data/mdn-content/files/en-us/web/css/css_functions/using_css_math_functions/index.md | ---
title: Using CSS math functions
slug: Web/CSS/CSS_Functions/Using_CSS_math_functions
page-type: guide
---
{{CSSRef}}
**CSS math functions** allow a property value - such as the `height`, `animation-duration`, or `font-size` of an element - to be written as a mathematical expression.
Without using any math, the b... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/atan/index.md | ---
title: atan()
slug: Web/CSS/atan
page-type: css-function
browser-compat: css.types.atan
---
{{CSSRef}}
The **`atan()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is a trigonometric function that returns the inverse tangent of a number between `-∞` and `+∞`. The function contains a s... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_host/index.md | ---
title: ":host"
slug: Web/CSS/:host
page-type: css-pseudo-class
browser-compat: css.selectors.host
---
{{CSSRef}}
The **`:host`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) selects the shadow host of the [shadow DOM](/en-US/docs/Web/API/Web_components/Using_shadow_DOM) containing... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_is/index.md | ---
title: ":is()"
slug: Web/CSS/:is
page-type: css-pseudo-class
browser-compat: css.selectors.is
---
{{CSSRef}}
The **`:is()`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) function takes a selector list as its argument, and selects any element that can be selected by one of the sele... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/outline-offset/index.md | ---
title: outline-offset
slug: Web/CSS/outline-offset
page-type: css-property
browser-compat: css.properties.outline-offset
---
{{CSSRef}}
The **`outline-offset`** CSS property sets the amount of space between an [outline](/en-US/docs/Web/CSS/outline) and the edge or border of an element.
{{EmbedInteractiveExample(... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/@import/index.md | ---
title: "@import"
slug: Web/CSS/@import
page-type: css-at-rule
browser-compat: css.at-rules.import
---
{{CSSRef}}
The **`@import`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) is used to import style rules from other valid stylesheets.
An `@import` rule _must_ be defined at the top of the sty... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/atan2/index.md | ---
title: atan2()
slug: Web/CSS/atan2
page-type: css-function
browser-compat: css.types.atan2
---
{{CSSRef}}
The **`atan2()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is a trigonometric function that returns the inverse tangent of two values between `-infinity` and `infinity`. The fu... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/gap/index.md | ---
title: gap
slug: Web/CSS/gap
page-type: css-shorthand-property
browser-compat: css.properties.gap
---
{{CSSRef}}
The **`gap`** [CSS](/en-US/docs/Web/CSS) [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets the gaps ({{glossary("gutters")}}) between rows and columns.
Early versions of the specific... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-block/index.md | ---
title: border-block
slug: Web/CSS/border-block
page-type: css-shorthand-property
browser-compat: css.properties.border-block
---
{{CSSRef}}
The **`border-block`** [CSS](/en-US/docs/Web/CSS) property is a [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) for setting the individual logical block border... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/sign/index.md | ---
title: sign()
slug: Web/CSS/sign
page-type: css-function
browser-compat: css.types.sign
---
{{CSSRef}}
The **`sign()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) contains one calculation, and returns `-1` if the numeric value of the argument is negative, `+1` if the numeric value of... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/min/index.md | ---
title: min()
slug: Web/CSS/min
page-type: css-function
browser-compat: css.types.min
---
{{CSSRef}}
The **`min()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) lets you set the smallest (most negative) value from a list of comma-separated expressions as the value of a CSS property val... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/next-sibling_combinator/index.md | ---
title: Next-sibling combinator
slug: Web/CSS/Next-sibling_combinator
page-type: css-combinator
browser-compat: css.selectors.next-sibling
---
{{CSSRef}}
The **next-sibling combinator** (`+`) separates two selectors and matches the second element only if it _immediately_ follows the first element, and both are chi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/animation-duration/index.md | ---
title: animation-duration
slug: Web/CSS/animation-duration
page-type: css-property
browser-compat: css.properties.animation-duration
---
{{CSSRef}}
The **`animation-duration`** [CSS](/en-US/docs/Web/CSS) property sets the length of time that an animation takes to complete one cycle.
{{EmbedInteractiveExample("pa... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-padding/index.md | ---
title: scroll-padding
slug: Web/CSS/scroll-padding
page-type: css-shorthand-property
browser-compat: css.properties.scroll-padding
---
{{CSSRef}}
The **`scroll-padding`** [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets scroll padding on all sides of an element at once, much like the {{cssxref(... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/counter-reset/index.md | ---
title: counter-reset
slug: Web/CSS/counter-reset
page-type: css-property
browser-compat: css.properties.counter-reset
---
{{CSSRef}}
The **`counter-reset`** [CSS](/en-US/docs/Web/CSS) property creates named [CSS counters](/en-US/docs/Web/CSS/CSS_counter_styles/Using_CSS_counters) and initializes them to a specifi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/box-flex/index.md | ---
title: box-flex
slug: Web/CSS/box-flex
page-type: css-property
status:
- deprecated
- non-standard
browser-compat: css.properties.box-flex
---
{{CSSRef}}{{Non-standard_Header}}{{Deprecated_Header}}
> **Warning:** This is a property for controlling parts of the XUL box model. It does not match either the old C... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/masonry-auto-flow/index.md | ---
title: masonry-auto-flow
slug: Web/CSS/masonry-auto-flow
page-type: css-property
status:
- experimental
browser-compat: css.properties.masonry-auto-flow
---
{{CSSRef}}{{SeeCompatTable}}
The **`masonry-auto-flow`** CSS property modifies how items are placed when using [masonry](/en-US/docs/Web/CSS/CSS_grid_layou... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_values_and_units/index.md | ---
title: CSS values and units
slug: Web/CSS/CSS_Values_and_Units
page-type: guide
spec-urls:
- https://drafts.csswg.org/css-values/
- https://drafts.csswg.org/css-color/
- https://drafts.csswg.org/css-images/
---
{{CSSRef}}
Every CSS declaration includes a property / value pair. Depending on the property, the... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_after/index.md | ---
title: "::after"
slug: Web/CSS/::after
page-type: css-pseudo-element
browser-compat: css.selectors.after
---
{{CSSRef}}
In CSS, **`::after`** creates a [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements) that is the last child of the selected element. It is often used to add cosmetic content to an element with ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/shape-image-threshold/index.md | ---
title: shape-image-threshold
slug: Web/CSS/shape-image-threshold
page-type: css-property
browser-compat: css.properties.shape-image-threshold
---
{{CSSRef}}
The **`shape-image-threshold`** [CSS](/en-US/docs/Web/CSS) property sets the alpha channel threshold used to extract the shape using an image as the value fo... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/outline-style/index.md | ---
title: outline-style
slug: Web/CSS/outline-style
page-type: css-property
browser-compat: css.properties.outline-style
---
{{CSSRef}}
The **`outline-style`** [CSS](/en-US/docs/Web/CSS) property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the {{cssxref("bord... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_-moz-progress-bar/index.md | ---
title: "::-moz-progress-bar"
slug: Web/CSS/::-moz-progress-bar
page-type: css-pseudo-element
status:
- non-standard
---
{{CSSRef}}{{Non-standard_header}}
The **`::-moz-progress-bar`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements) is a [Mozilla extension](/en-US/docs/Web/CSS/Mo... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/zoom/index.md | ---
title: zoom
slug: Web/CSS/zoom
page-type: css-property
status:
- non-standard
browser-compat: css.properties.zoom
---
{{CSSRef}}{{Non-standard_header}}
The non-standard **`zoom`** [CSS](/en-US/docs/Web/CSS) property can be used to control the magnification level of an element. {{cssxref("transform-function/scal... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/width/index.md | ---
title: width
slug: Web/CSS/width
page-type: css-property
browser-compat: css.properties.width
---
{{CSSRef}}
The **`width`** CSS property sets an element's width. By default, it sets the width of the [content area](/en-US/docs/Web/CSS/CSS_box_model/Introduction_to_the_CSS_box_model#content_area), but if {{cssxref... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/word-break/index.md | ---
title: word-break
slug: Web/CSS/word-break
page-type: css-property
browser-compat: css.properties.word-break
---
{{CSSRef}}
The **`word-break`** [CSS](/en-US/docs/Web/CSS) property sets whether line breaks appear wherever the text would otherwise overflow its content box.
{{EmbedInteractiveExample("pages/css/wor... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/inset-block/index.md | ---
title: inset-block
slug: Web/CSS/inset-block
page-type: css-shorthand-property
browser-compat: css.properties.inset-block
---
{{CSSRef}}
The **`inset-block`** [CSS](/en-US/docs/Web/CSS) property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element'... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/animation-iteration-count/index.md | ---
title: animation-iteration-count
slug: Web/CSS/animation-iteration-count
page-type: css-property
browser-compat: css.properties.animation-iteration-count
---
{{CSSRef}}
The **`animation-iteration-count`** [CSS](/en-US/docs/Web/CSS) property sets the number of times an animation sequence should be played before st... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_-webkit-scrollbar/index.md | ---
title: "::-webkit-scrollbar"
slug: Web/CSS/::-webkit-scrollbar
page-type: css-pseudo-element
status:
- non-standard
browser-compat:
- css.selectors.-webkit-scrollbar
- css.selectors.-webkit-scrollbar-button
- css.selectors.-webkit-scrollbar-thumb
- css.selectors.-webkit-scrollbar-track
- css.selectors.-... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_images/index.md | ---
title: CSS images
slug: Web/CSS/CSS_images
page-type: css-module
spec-urls:
- https://drafts.csswg.org/css-images/
- https://compat.spec.whatwg.org/#css-%3Cimage%3E-type
- https://drafts.csswg.org/css-values/#urls
---
{{CSSRef}}
The **CSS images** module defines the types of images that can be used (the {{C... | 0 |
data/mdn-content/files/en-us/web/css/css_images | data/mdn-content/files/en-us/web/css/css_images/implementing_image_sprites_in_css/index.md | ---
title: Implementing image sprites in CSS
slug: Web/CSS/CSS_images/Implementing_image_sprites_in_CSS
page-type: guide
---
{{CSSRef}}
**Image sprites** are used in numerous web apps where multiple images are used. Rather than include each image as a separate image file, it is much more memory- and bandwidth-friendl... | 0 |
data/mdn-content/files/en-us/web/css/css_images | data/mdn-content/files/en-us/web/css/css_images/using_css_gradients/index.md | ---
title: Using CSS gradients
slug: Web/CSS/CSS_images/Using_CSS_gradients
page-type: guide
---
{{CSSRef}}
**CSS gradients** are represented by the {{cssxref("<gradient>")}} data type, a special type of {{cssxref("<image>")}} made of a progressive transition between two or more colors. You can choose bet... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-start-start-radius/index.md | ---
title: border-start-start-radius
slug: Web/CSS/border-start-start-radius
page-type: css-property
browser-compat: css.properties.border-start-start-radius
---
{{CSSRef}}
The **`border-start-start-radius`** [CSS](/en-US/docs/Web/CSS) property defines a logical border radius on an element, which maps to a physical b... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.