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/position_value/index.md | ---
title: <position>
slug: Web/CSS/position_value
page-type: css-type
browser-compat: css.types.position
---
{{CSSRef}}
The **`<position>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) denotes a two-dimensional coordinate used to set a location relative to an element box. It is used in the ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/flex-wrap/index.md | ---
title: flex-wrap
slug: Web/CSS/flex-wrap
page-type: css-property
browser-compat: css.properties.flex-wrap
---
{{CSSRef}}
The **`flex-wrap`** [CSS](/en-US/docs/Web/CSS) property sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that line... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/@supports/index.md | ---
title: "@supports"
slug: Web/CSS/@supports
page-type: css-at-rule
browser-compat: css.at-rules.supports
---
{{CSSRef}}
The **`@supports`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) lets you specify CSS declarations that depend on a browser's support for CSS features.
Using this at-rule is ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/resolved_value/index.md | ---
title: Resolved value
slug: Web/CSS/resolved_value
page-type: guide
spec-urls: https://drafts.csswg.org/cssom/#resolved-values
---
{{CSSRef}}
The **resolved value** of a [CSS](/en-US/docs/Web/CSS) property is the value returned by {{domxref("Window.getComputedStyle", "getComputedStyle()")}}.
For most properties,... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_animated_properties/index.md | ---
title: Animatable CSS properties
slug: Web/CSS/CSS_animated_properties
page-type: landing-page
---
{{CSSRef}}
[CSS Animations](/en-US/docs/Web/CSS/CSS_animations) and [Transitions](/en-US/docs/Web/CSS/CSS_transitions) rely on the concept of **animatable** properties, and all CSS properties are animatable unless o... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/@starting-style/index.md | ---
title: "@starting-style"
slug: Web/CSS/@starting-style
page-type: css-at-rule
status:
- experimental
browser-compat: css.at-rules.starting-style
---
{{CSSRef}}{{SeeCompatTable}}
The **`@starting-style`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) is used to define starting values for prop... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-top-color/index.md | ---
title: border-top-color
slug: Web/CSS/border-top-color
page-type: css-property
browser-compat: css.properties.border-top-color
---
{{CSSRef}}
The **`border-top-color`** CSS property sets the color of an element's top [border](/en-US/docs/Web/CSS/border). It can also be set with the shorthand CSS properties {{cssx... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_read-write/index.md | ---
title: ":read-write"
slug: Web/CSS/:read-write
page-type: css-pseudo-class
browser-compat: css.selectors.read-write
---
{{CSSRef}}
The **`:read-write`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an element (such as `input` or `textarea`) that is editable by the user.... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-image-source/index.md | ---
title: border-image-source
slug: Web/CSS/border-image-source
page-type: css-property
browser-compat: css.properties.border-image-source
---
{{CSSRef}}
The **`border-image-source`** [CSS](/en-US/docs/Web/CSS) property sets the source image used to create an element's [border image](/en-US/docs/Web/CSS/border-image... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-top-right-radius/index.md | ---
title: border-top-right-radius
slug: Web/CSS/border-top-right-radius
page-type: css-property
browser-compat: css.properties.border-top-right-radius
---
{{CSSRef}}
The **`border-top-right-radius`** [CSS](/en-US/docs/Web/CSS) property rounds the top-right corner of an element by specifying the radius (or the radius... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/writing-mode/index.md | ---
title: writing-mode
slug: Web/CSS/writing-mode
page-type: css-property
browser-compat: css.properties.writing-mode
---
{{CSSRef}}
The **`writing-mode`** [CSS](/en-US/docs/Web/CSS) property sets whether lines of text are laid out horizontally or vertically, as well as the direction in which blocks progress. When s... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-kerning/index.md | ---
title: font-kerning
slug: Web/CSS/font-kerning
page-type: css-property
browser-compat: css.properties.font-kerning
---
{{CSSRef}}
The **`font-kerning`** CSS property sets the use of the kerning information stored in a font.
{{EmbedInteractiveExample("pages/css/font-kerning.html")}}
_Kerning_ defines how letters... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/object-position/index.md | ---
title: object-position
slug: Web/CSS/object-position
page-type: css-property
browser-compat: css.properties.object-position
---
{{CSSRef}}
The **`object-position`** [CSS](/en-US/docs/Web/CSS) property specifies the alignment of the selected [replaced element](/en-US/docs/Web/CSS/Replaced_element)'s contents withi... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/object-position/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/_colon_hover/index.md | ---
title: ":hover"
slug: Web/CSS/:hover
page-type: css-pseudo-class
browser-compat: css.selectors.hover
---
{{CSSRef}}
The **`:hover`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches when the user interacts with an element with a pointing device, but does not necessarily activa... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_-moz-locale-dir_rtl/index.md | ---
title: ":-moz-locale-dir(rtl)"
slug: Web/CSS/:-moz-locale-dir_rtl
page-type: css-pseudo-class
status:
- non-standard
---
{{CSSRef}}{{Non-standard_header}}
The **`:-moz-locale-dir(rtl)`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) 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/-webkit-text-stroke-width/index.md | ---
title: "-webkit-text-stroke-width"
slug: Web/CSS/-webkit-text-stroke-width
page-type: css-property
browser-compat: css.properties.-webkit-text-stroke-width
---
{{CSSRef}}
The **`-webkit-text-stroke-width`** [CSS](/en-US/docs/Web/CSS) property specifies the width of the stroke for text.
## Syntax
```css
/* Keywo... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/offset-rotate/index.md | ---
title: offset-rotate
slug: Web/CSS/offset-rotate
page-type: css-property
browser-compat: css.properties.offset-rotate
---
{{CSSRef}}
The **`offset-rotate`** CSS property defines the orientation/direction of the element as it is positioned along the {{cssxref("offset-path")}}.
{{EmbedInteractiveExample("pages/css... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/-webkit-line-clamp/index.md | ---
title: "-webkit-line-clamp"
slug: Web/CSS/-webkit-line-clamp
page-type: css-property
browser-compat: css.properties.-webkit-line-clamp
---
{{CSSRef}}
The **`-webkit-line-clamp`** CSS property allows limiting of the contents of a {{Glossary("block")}} to the specified number of lines.
It only works in combination... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/line-height/index.md | ---
title: line-height
slug: Web/CSS/line-height
page-type: css-property
browser-compat: css.properties.line-height
---
{{CSSRef}}
The **`line-height`** [CSS](/en-US/docs/Web/CSS) property sets the height of a line box. It's commonly used to set the distance between lines of text. On block-level elements, it specifie... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_display/index.md | ---
title: CSS display
slug: Web/CSS/CSS_display
page-type: css-module
browser-compat: css.properties.display
---
{{CSSRef}}
The **CSS display** module defines how the CSS formatting box tree is generated from the document element tree and defines properties controlling it.
## Reference
### Properties
- {{CSSxRef(... | 0 |
data/mdn-content/files/en-us/web/css/css_display | data/mdn-content/files/en-us/web/css/css_display/block_formatting_context/index.md | ---
title: Block formatting context
slug: Web/CSS/CSS_display/Block_formatting_context
page-type: guide
spec-urls: https://drafts.csswg.org/css-display/#block-formatting-context
---
{{CSSRef}}
A **block formatting context** (BFC) is a part of a visual CSS rendering of a web page. It's the region in which the layout o... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_link/index.md | ---
title: ":link"
slug: Web/CSS/:link
page-type: css-pseudo-class
browser-compat: css.selectors.link
---
{{CSSRef}}
The **`:link`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an element that has not yet been visited. It matches every unvisited {{HTMLElement("a")}} or {{H... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/tutorials/index.md | ---
title: CSS Tutorials
slug: Web/CSS/Tutorials
page-type: landing-page
---
{{CSSRef}}
Learning CSS may be a daunting task.
In order to help you, we have written numerous **tutorials about CSS**.
Some are aimed at complete beginners, while others present complex features to be used by more experienced users.
This p... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-start-end-radius/index.md | ---
title: border-start-end-radius
slug: Web/CSS/border-start-end-radius
page-type: css-property
browser-compat: css.properties.border-start-end-radius
---
{{CSSRef}}
The **`border-start-end-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/content-visibility/index.md | ---
title: content-visibility
slug: Web/CSS/content-visibility
page-type: css-property
status:
- experimental
browser-compat: css.properties.content-visibility
---
{{CSSRef}}{{SeeCompatTable}}
The **`content-visibility`** [CSS](/en-US/docs/Web/CSS) property controls whether or not an element renders its contents at... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/transform/index.md | ---
title: transform
slug: Web/CSS/transform
page-type: css-property
browser-compat: css.properties.transform
---
{{CSSRef}}
The **`transform`** [CSS](/en-US/docs/Web/CSS) property lets you rotate, scale, skew, or translate an element.
It modifies the coordinate space of the CSS [visual formatting model](/en-US/docs/... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/container-name/index.md | ---
title: container-name
slug: Web/CSS/container-name
page-type: css-property
browser-compat: css.properties.container-name
---
{{CSSRef}}
The **container-name** [CSS](/en-US/docs/Web/CSS) property specifies a list of query container names used by the [@container](/en-US/docs/Web/CSS/@container) at-rule in a [contai... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/namespace_separator/index.md | ---
title: Namespace separator
slug: Web/CSS/Namespace_separator
page-type: css-combinator
browser-compat: css.selectors.namespace
---
{{CSSRef}}
The **namespace separator** (`|`) separates the selector from the namespace, identifying the {{glossary("namespace")}}, or lack thereof, for a type selector.
```css
/* Lin... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/calc-constant/index.md | ---
title: <calc-constant>
slug: Web/CSS/calc-constant
page-type: css-type
browser-compat: css.types.calc-constant
---
{{CSSRef}}
The **`<calc-constant>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) represents well-defined constants such as `e` and `pi`. Rather than require authors to manua... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_target-within/index.md | ---
title: ":target-within"
slug: Web/CSS/:target-within
page-type: css-pseudo-class
status:
- experimental
browser-compat: css.selectors.target-within
---
{{CSSRef}}{{SeeCompatTable}}
The **`:target-within`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an element that i... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/margin-block/index.md | ---
title: margin-block
slug: Web/CSS/margin-block
page-type: css-shorthand-property
browser-compat: css.properties.margin-block
---
{{CSSRef}}
The **`margin-block`** [CSS](/en-US/docs/Web/CSS) [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) defines the logical block start and end margins of an element... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/background/index.md | ---
title: background
slug: Web/CSS/background
page-type: css-shorthand-property
browser-compat: css.properties.background
---
{{CSSRef}}
The **`background`** [shorthand](/en-US/docs/Web/CSS/Shorthand_properties) [CSS](/en-US/docs/Web/CSS) property sets all background style properties at once, such as color, image, o... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_checked/index.md | ---
title: ":checked"
slug: Web/CSS/:checked
page-type: css-pseudo-class
browser-compat: css.selectors.checked
---
{{CSSRef}}
The **`:checked`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) selector represents any **radio** ([`<input type="radio">`](/en-US/docs/Web/HTML/Element/input/... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/column_combinator/index.md | ---
title: Column combinator
slug: Web/CSS/Column_combinator
page-type: css-combinator
status:
- experimental
browser-compat: css.selectors.column
---
{{CSSRef}} {{SeeCompatTable}}
The **column combinator** (`||`) is placed between two CSS selectors. It matches only those elements matched by the second selector tha... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/flex-direction/index.md | ---
title: flex-direction
slug: Web/CSS/flex-direction
page-type: css-property
browser-compat: css.properties.flex-direction
---
{{CSSRef}}
The **`flex-direction`** [CSS](/en-US/docs/Web/CSS) property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed).
... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/alternative_style_sheets/index.md | ---
title: Alternative style sheets
slug: Web/CSS/Alternative_style_sheets
page-type: guide
browser-compat: html.elements.link.rel.alternate_stylesheet
---
{{CSSRef}}
Specifying **alternative style sheets** in a web page provides a way for users to see multiple versions of a page, based on their needs or preferences.... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/page/index.md | ---
title: page
slug: Web/CSS/page
page-type: css-property
browser-compat: css.properties.page
---
{{CSSRef}}
The **`page`** [CSS](/en-US/docs/Web/CSS) property is used to specify the named page, a specific type of page defined by the {{cssxref("@page")}} [at-rule](/en-US/docs/Web/CSS/At-rule).
If there are multiple... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_focus-visible/index.md | ---
title: ":focus-visible"
slug: Web/CSS/:focus-visible
page-type: css-pseudo-class
browser-compat: css.selectors.focus-visible
---
{{CSSRef}}
The **`:focus-visible`** pseudo-class applies while an element matches the {{CSSxRef(":focus")}} pseudo-class and the UA ({{glossary("User Agent")}}) determines via heuristic... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-timeline/index.md | ---
title: scroll-timeline
slug: Web/CSS/scroll-timeline
page-type: css-shorthand-property
status:
- experimental
browser-compat: css.properties.scroll-timeline
---
{{CSSRef}}{{SeeCompatTable}}
The **`scroll-timeline`** [CSS](/en-US/docs/Web/CSS) [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) is use... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/class_selectors/index.md | ---
title: Class selectors
slug: Web/CSS/Class_selectors
page-type: css-selector
browser-compat: css.selectors.class
---
{{CSSRef}}
The [CSS](/en-US/docs/Web/CSS) **class selector** matches elements based on the contents of their [`class`](/en-US/docs/Web/HTML/Global_attributes#class) attribute.
```css
/* All elemen... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-spacing/index.md | ---
title: border-spacing
slug: Web/CSS/border-spacing
page-type: css-property
browser-compat: css.properties.border-spacing
---
{{CSSRef}}
The **`border-spacing`** [CSS](/en-US/docs/Web/CSS) property sets the distance between the borders of adjacent cells in a {{htmlelement("table")}}. This property applies only whe... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-snap-stop/index.md | ---
title: scroll-snap-stop
slug: Web/CSS/scroll-snap-stop
page-type: css-property
browser-compat: css.properties.scroll-snap-stop
---
{{CSSRef}}
The **`scroll-snap-stop`** [CSS](/en-US/docs/Web/CSS) property defines whether or not the scroll container is allowed to "pass over" possible snap positions.
{{EmbedIntera... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-block-end-width/index.md | ---
title: border-block-end-width
slug: Web/CSS/border-block-end-width
page-type: css-property
browser-compat: css.properties.border-block-end-width
---
{{CSSRef}}
The **`border-block-end-width`** [CSS](/en-US/docs/Web/CSS) property defines the width of the logical block-end border of an element, which maps to a phys... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/-webkit-touch-callout/index.md | ---
title: "-webkit-touch-callout"
slug: Web/CSS/-webkit-touch-callout
page-type: css-property
status:
- non-standard
browser-compat: css.properties.-webkit-touch-callout
---
{{CSSRef}}{{Non-standard_header}}
The `-webkit-touch-callout` [CSS](/en-US/docs/Web/CSS) property controls the display of the default callout... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-style/index.md | ---
title: border-style
slug: Web/CSS/border-style
page-type: css-shorthand-property
browser-compat: css.properties.border-style
---
{{CSSRef}}
The **`border-style`** [shorthand](/en-US/docs/Web/CSS/Shorthand_properties) [CSS](/en-US/docs/Web/CSS) property sets the line style for all four sides of an element's border... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/box-lines/index.md | ---
title: box-lines
slug: Web/CSS/box-lines
page-type: css-property
status:
- deprecated
- non-standard
browser-compat: css.properties.box-lines
---
{{CSSRef}}{{Non-standard_header}}{{Deprecated_Header}}
> **Warning:** This is a property of the original CSS Flexible Box Layout Module draft. It has been replaced ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-variant-alternates/ofl.txt | Copyright 2011 The MonteCarlo Project Authors (https://github.com/googlefonts/monte-carlo)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-------------------------------------------------------... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-variant-alternates/index.md | ---
title: font-variant-alternates
slug: Web/CSS/font-variant-alternates
page-type: css-property
browser-compat: css.properties.font-variant-alternates
---
{{CSSRef}}
The **`font-variant-alternates`** CSS property controls the usage of alternate glyphs. These alternate glyphs may be referenced by alternative names de... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/list-style-position/index.md | ---
title: list-style-position
slug: Web/CSS/list-style-position
page-type: css-property
browser-compat: css.properties.list-style-position
---
{{CSSRef}}
The **`list-style-position`** [CSS](/en-US/docs/Web/CSS) property sets the position of the {{cssxref("::marker")}} relative to a list item.
{{EmbedInteractiveExam... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/child_combinator/index.md | ---
title: Child combinator
slug: Web/CSS/Child_combinator
page-type: css-combinator
browser-compat: css.selectors.child
---
{{CSSRef}}
The **child combinator** (`>`) is placed between two CSS selectors. It matches only those elements matched by the second selector that are the direct children of elements matched by ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_selectors/index.md | ---
title: CSS selectors
slug: Web/CSS/CSS_selectors
page-type: css-module
spec-urls: https://drafts.csswg.org/selectors/
---
{{CSSRef}}
The **CSS selectors** module defines the patterns to select elements to which a set of CSS rules are then applied along with their {{cssxref("specificity")}}. The CSS selectors modu... | 0 |
data/mdn-content/files/en-us/web/css/css_selectors | data/mdn-content/files/en-us/web/css/css_selectors/selectors_and_combinators/index.md | ---
title: CSS selectors and combinators
slug: Web/CSS/CSS_selectors/Selectors_and_combinators
page-type: guide
spec-urls:
- https://drafts.csswg.org/selectors/
- https://drafts.csswg.org/css-pseudo/
---
{{CSSRef}}
CSS selectors are used to define a pattern of the elements that you want to select for applying a s... | 0 |
data/mdn-content/files/en-us/web/css/css_selectors | data/mdn-content/files/en-us/web/css/css_selectors/selector_structure/index.md | ---
title: CSS selector structure
slug: Web/CSS/CSS_selectors/Selector_structure
page-type: guide
spec-urls: https://drafts.csswg.org/selectors/
---
{{CSSRef}}
The CSS selector represents a particular pattern of element or elements in a tree structure. The term "selector" can refer to a [simple selector](#simple_sele... | 0 |
data/mdn-content/files/en-us/web/css/css_selectors | data/mdn-content/files/en-us/web/css/css_selectors/using_the__colon_target_pseudo-class_in_selectors/index.md | ---
title: Using the :target pseudo-class in selectors
slug: Web/CSS/CSS_selectors/Using_the_:target_pseudo-class_in_selectors
page-type: guide
---
{{CSSRef}}
When a URL points at a specific piece of a document, it can be difficult for the user to notice. Find out how you can use some simple CSS to draw attention to ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/position/index.md | ---
title: position
slug: Web/CSS/position
page-type: css-property
browser-compat: css.properties.position
---
{{CSSRef}}
The **`position`** [CSS](/en-US/docs/Web/CSS) property sets how an element is positioned in a document. The {{Cssxref("top")}}, {{Cssxref("right")}}, {{Cssxref("bottom")}}, and {{Cssxref("left")}}... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_modal/index.md | ---
title: ":modal"
slug: Web/CSS/:modal
page-type: css-pseudo-class
browser-compat: css.selectors.modal
---
{{CSSRef}}
The **`:modal`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches an element that is in a state in which it excludes all interaction with elements outside it unt... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/min-width/index.md | ---
title: min-width
slug: Web/CSS/min-width
page-type: css-property
browser-compat: css.properties.min-width
---
{{CSSRef}}
The **`min-width`** [CSS](/en-US/docs/Web/CSS) property sets the minimum width of an element. It prevents the [used value](/en-US/docs/Web/CSS/used_value) of the {{cssxref("width")}} property f... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-block-width/index.md | ---
title: border-block-width
slug: Web/CSS/border-block-width
page-type: css-property
browser-compat: css.properties.border-block-width
---
{{CSSRef}}
The **`border-block-width`** [CSS](/en-US/docs/Web/CSS) property defines the width of the logical block borders of an element, which maps to a physical border width d... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-top-width/index.md | ---
title: border-top-width
slug: Web/CSS/border-top-width
page-type: css-property
browser-compat: css.properties.border-top-width
---
{{CSSRef}}
The **`border-top-width`** [CSS](/en-US/docs/Web/CSS) property sets the width of the top border of an element.
{{EmbedInteractiveExample("pages/css/border-top-width.html")... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_motion_path/index.md | ---
title: CSS motion path
slug: Web/CSS/CSS_motion_path
page-type: css-module
browser-compat: css.properties.offset-path
---
{{CSSRef}}
The **CSS motion path** module allows authors to animate any graphical object along a custom path.
The idea is that when you want to animate an element moving along a path, you pre... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/user-modify/index.md | ---
title: user-modify
slug: Web/CSS/user-modify
page-type: css-property
status:
- deprecated
- non-standard
browser-compat: css.properties.user-modify
---
{{CSSRef}}{{Non-standard_Header}}{{Deprecated_Header}}
The **`user-modify`** property has no effect in Firefox. It was originally planned to determine whether... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-image/index.md | ---
title: border-image
slug: Web/CSS/border-image
page-type: css-property
browser-compat: css.properties.border-image
---
{{CSSRef}}
The **`border-image`** [CSS](/en-US/docs/Web/CSS) property draws an image around a given element. It replaces the element's regular [border](/en-US/docs/Web/CSS/border).
{{EmbedIntera... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_nth-last-child/index.md | ---
title: ":nth-last-child()"
slug: Web/CSS/:nth-last-child
page-type: css-pseudo-class
browser-compat: css.selectors.nth-last-child
---
{{CSSRef}}
The **`:nth-last-child()`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches elements based on their position among a group of sibli... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/box-pack/index.md | ---
title: box-pack
slug: Web/CSS/box-pack
page-type: css-property
status:
- deprecated
- non-standard
browser-compat: css.properties.box-pack
---
{{CSSRef}}{{Non-standard_header}}{{Deprecated_Header}}
> **Warning:** This is a property of the original CSS Flexible Box Layout Module draft, and has been replaced by... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/margin-top/index.md | ---
title: margin-top
slug: Web/CSS/margin-top
page-type: css-property
browser-compat: css.properties.margin-top
---
{{CSSRef}}
The **`margin-top`** [CSS](/en-US/docs/Web/CSS) property sets the [margin area](/en-US/docs/Web/CSS/CSS_box_model/Introduction_to_the_CSS_box_model#margin_area) on the top of an element. A p... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border/index.md | ---
title: border
slug: Web/CSS/border
page-type: css-shorthand-property
browser-compat: css.properties.border
---
{{CSSRef}}
The **`border`** [shorthand](/en-US/docs/Web/CSS/Shorthand_properties) [CSS](/en-US/docs/Web/CSS) property sets an element's border. It sets the values of {{Cssxref("border-width")}}, {{Cssxre... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-margin-block/index.md | ---
title: scroll-margin-block
slug: Web/CSS/scroll-margin-block
page-type: css-shorthand-property
browser-compat: css.properties.scroll-margin-block
---
{{CSSRef}}
The `scroll-margin-block` [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets the scroll margins of an element in the block dimension.
{... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/custom-ident/index.md | ---
title: <custom-ident>
slug: Web/CSS/custom-ident
page-type: css-type
spec-urls:
- https://drafts.csswg.org/css-values/#custom-idents
- https://drafts.csswg.org/css-will-change/#valdef-will-change-custom-ident
- https://drafts.csswg.org/css-counter-styles/#typedef-counter-style-name
- https://drafts.csswg.or... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_doublecolon_-webkit-slider-thumb/index.md | ---
title: "::-webkit-slider-thumb"
slug: Web/CSS/::-webkit-slider-thumb
page-type: css-pseudo-element
status:
- experimental
browser-compat: css.selectors.-webkit-slider-thumb
---
{{CSSRef}}{{SeeCompatTable}}
The **`::-webkit-slider-thumb`** CSS [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements) represents the ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/max-content/index.md | ---
title: max-content
slug: Web/CSS/max-content
page-type: css-keyword
browser-compat: css.properties.width.max-content
---
{{CSSRef}}
The `max-content` sizing keyword represents the intrinsic maximum width or height of the content. For text content this means that the content will not wrap at all even if it causes ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scroll-padding-inline-start/index.md | ---
title: scroll-padding-inline-start
slug: Web/CSS/scroll-padding-inline-start
page-type: css-property
browser-compat: css.properties.scroll-padding-inline-start
---
{{CSSRef}}
The `scroll-padding-inline-start` property defines offsets for the start edge in the inline dimension of the _optimal viewing region_ of th... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/mod/index.md | ---
title: mod()
slug: Web/CSS/mod
page-type: css-function
browser-compat: css.types.mod
---
{{CSSRef}}
The **`mod()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) returns a modulus left over when the first parameter is divided by the second parameter, similar to the JavaScript [remainder... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_-moz-window-inactive/index.md | ---
title: ":-moz-window-inactive"
slug: Web/CSS/:-moz-window-inactive
page-type: css-pseudo-class
status:
- non-standard
browser-compat: css.selectors.-moz-window-inactive
---
{{CSSRef}}{{Non-standard_header}}
The **`:-moz-window-inactive`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-clas... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/column-span/index.md | ---
title: column-span
slug: Web/CSS/column-span
page-type: css-property
browser-compat: css.properties.column-span
---
{{CSSRef}}
The **`column-span`** [CSS](/en-US/docs/Web/CSS) property makes it possible for an element to span across all columns when its value is set to `all`.
{{EmbedInteractiveExample("pages/css... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/replaced_element/index.md | ---
title: Replaced elements
slug: Web/CSS/Replaced_element
page-type: guide
---
{{CSSRef}}
In [CSS](/en-US/docs/Web/CSS), a **replaced element** is an element whose representation is outside the scope of CSS; they're external objects whose representation is independent of the CSS formatting model.
Put in simpler te... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-variation-settings/index.md | ---
title: font-variation-settings
slug: Web/CSS/font-variation-settings
page-type: css-property
browser-compat: css.properties.font-variation-settings
---
{{CSSRef}}
The **`font-variation-settings`** CSS property provides low-level control over [variable font](/en-US/docs/Web/CSS/CSS_fonts/Variable_fonts_guide) char... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_lists/index.md | ---
title: CSS lists and counters
slug: Web/CSS/CSS_lists
page-type: css-module
spec-urls: https://drafts.csswg.org/css-lists/
---
{{CSSRef}}
The **CSS lists and counters** module enables styling and positioning of list item bullets and manipulating their values with a combination of strings, counters, and other feat... | 0 |
data/mdn-content/files/en-us/web/css/css_lists | data/mdn-content/files/en-us/web/css/css_lists/consistent_list_indentation/index.md | ---
title: Consistent list indentation
slug: Web/CSS/CSS_lists/Consistent_list_indentation
page-type: guide
---
{{CSSRef}}
One of the most common style changes made to lists is a change in the indentation distance—that is, how far the list items are pushed over to the right. This article will help you understand inde... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/min-height/index.md | ---
title: min-height
slug: Web/CSS/min-height
page-type: css-property
browser-compat: css.properties.min-height
---
{{CSSRef}}
The **`min-height`** [CSS](/en-US/docs/Web/CSS) property sets the minimum height of an element. It prevents the [used value](/en-US/docs/Web/CSS/used_value) of the {{cssxref("height")}} prop... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/user-select/index.md | ---
title: user-select
slug: Web/CSS/user-select
page-type: css-property
browser-compat: css.properties.user-select
---
{{CSSRef}}
The **`user-select`** [CSS](/en-US/docs/Web/CSS) property controls whether the user can select text. This doesn't have any effect on content loaded as part of a browser's user interface (... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/-webkit-tap-highlight-color/index.md | ---
title: "-webkit-tap-highlight-color"
slug: Web/CSS/-webkit-tap-highlight-color
page-type: css-property
status:
- non-standard
browser-compat: css.properties.-webkit-tap-highlight-color
---
{{CSSRef}}{{Non-standard_header}}
**`-webkit-tap-highlight-color`** is a non-standard CSS property that sets the color of t... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/font-variant-emoji/index.md | ---
title: font-variant-emoji
slug: Web/CSS/font-variant-emoji
page-type: css-property
browser-compat: css.properties.font-variant-emoji
---
{{CSSRef}}
The **`font-variant-emoji`** [CSS](/en-US/docs/Web/CSS) property specifies the default presentation style for displaying emojis.
Traditionally, this was done by appe... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/letter-spacing/index.md | ---
title: letter-spacing
slug: Web/CSS/letter-spacing
page-type: css-property
browser-compat: css.properties.letter-spacing
---
{{CSSRef}}
The **`letter-spacing`** [CSS](/en-US/docs/Web/CSS) property sets the horizontal spacing behavior between text characters. This value is added to the natural spacing between char... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-inline-end-width/index.md | ---
title: border-inline-end-width
slug: Web/CSS/border-inline-end-width
page-type: css-property
browser-compat: css.properties.border-inline-end-width
---
{{CSSRef}}
The **`border-inline-end-width`** [CSS](/en-US/docs/Web/CSS) property defines the width of the logical inline-end border of an element, which maps to a... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_last-of-type/index.md | ---
title: ":last-of-type"
slug: Web/CSS/:last-of-type
page-type: css-pseudo-class
browser-compat: css.selectors.last-of-type
---
{{CSSRef}}
The **`:last-of-type`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents the last element of its type among a group of sibling elements.
... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/scrollbar-color/index.md | ---
title: scrollbar-color
slug: Web/CSS/scrollbar-color
page-type: css-property
browser-compat: css.properties.scrollbar-color
---
{{CSSRef}}
The **`scrollbar-color`** [CSS](/en-US/docs/Web/CSS) property sets the color of the scrollbar track and thumb.
The **track** refers to the background of the scrollbar, which ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/layout_mode/index.md | ---
title: Layout mode
slug: Web/CSS/Layout_mode
page-type: guide
---
{{CSSRef}}
A [CSS](/en-US/docs/Web/CSS) **layout mode**, sometimes called _layout_, is an algorithm that determines the position and size of boxes based on the way they interact with their sibling and ancestor boxes. There are several of them:
- _... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/-moz-image-region/index.md | ---
title: "-moz-image-region"
slug: Web/CSS/-moz-image-region
page-type: css-property
status:
- non-standard
browser-compat: css.properties.-moz-image-region
---
{{CSSRef}}{{Non-standard_Header}}
For certain XUL elements and pseudo-elements that use an image from the {{CSSxRef("list-style-image")}} property, this ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/transition-timing-function/index.md | ---
title: transition-timing-function
slug: Web/CSS/transition-timing-function
page-type: css-property
browser-compat: css.properties.transition-timing-function
---
{{CSSRef}}
The **`transition-timing-function`** CSS property sets how intermediate values are calculated for CSS properties being affected by a [transiti... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-inline-start-width/index.md | ---
title: border-inline-start-width
slug: Web/CSS/border-inline-start-width
page-type: css-property
browser-compat: css.properties.border-inline-start-width
---
{{CSSRef}}
The **`border-inline-start-width`** [CSS](/en-US/docs/Web/CSS) property defines the width of the logical inline-start border of an element, which... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_target/index.md | ---
title: ":target"
slug: Web/CSS/:target
page-type: css-pseudo-class
browser-compat: css.selectors.target
---
{{CSSRef}}
The **`:target`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents a unique element (the _target element_) with an [`id`](/en-US/docs/Web/HTML/Global_attri... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/display/index.md | ---
title: display
slug: Web/CSS/display
page-type: css-property
browser-compat: css.properties.display
---
{{CSSRef}}
The **`display`** [CSS](/en-US/docs/Web/CSS) property sets whether an element is treated as a [block or inline box](/en-US/docs/Web/CSS/CSS_flow_layout) and the layout used for its children, such as ... | 0 |
data/mdn-content/files/en-us/web/css/display | data/mdn-content/files/en-us/web/css/display/multi-keyword_syntax_of_display/index.md | ---
title: Using the multi-keyword syntax with CSS display
slug: Web/CSS/display/multi-keyword_syntax_of_display
page-type: guide
---
{{CSSRef}}
The [CSS display module](/en-US/docs/Web/CSS/CSS_display) defines a multi-keyword syntax for the CSS [`display`](/en-US/docs/Web/CSS/display) property. This guide explains t... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_blank/index.md | ---
title: ":blank"
slug: Web/CSS/:blank
page-type: css-pseudo-class
status:
- experimental
browser-compat: css.selectors.blank
---
{{CSSRef}}{{SeeCompatTable}}
> **Note:** The `:blank` selector is considered at risk, as the CSSWG keeps changing it.
>
> See [CSSWG issue #1967](https://github.com/w3c/csswg-drafts/is... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/subsequent-sibling_combinator/index.md | ---
title: Subsequent-sibling combinator
slug: Web/CSS/Subsequent-sibling_combinator
page-type: css-combinator
browser-compat: css.selectors.subsequent-sibling
---
{{CSSRef}}
The **subsequent-sibling combinator** (`~`, a tilde) separates two selectors and matches _all instances_ of the second element that follow the ... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/text-emphasis-color/index.md | ---
title: text-emphasis-color
slug: Web/CSS/text-emphasis-color
page-type: css-property
browser-compat: css.properties.text-emphasis-color
---
{{CSSRef}}
The **`text-emphasis-color`** [CSS](/en-US/docs/Web/CSS) property sets the color of emphasis marks. This value can also be set using the {{cssxref("text-emphasis")... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/_colon_where/index.md | ---
title: ":where()"
slug: Web/CSS/:where
page-type: css-pseudo-class
browser-compat: css.selectors.where
---
{{CSSRef}}
The **`:where()`** [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... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/border-image-slice/index.md | ---
title: border-image-slice
slug: Web/CSS/border-image-slice
page-type: css-property
browser-compat: css.properties.border-image-slice
---
{{CSSRef}}
The **`border-image-slice`** [CSS](/en-US/docs/Web/CSS) property divides the image specified by {{cssxref("border-image-source")}} into regions. These regions form th... | 0 |
data/mdn-content/files/en-us/web/css | data/mdn-content/files/en-us/web/css/css_overflow/index.md | ---
title: CSS overflow
slug: Web/CSS/CSS_overflow
page-type: css-module
spec-urls: https://drafts.csswg.org/css-overflow/#propdef-overflow
---
{{CSSRef}}
The **CSS overflow** module properties enable you to handle scrollable overflow in visual media.
Overflow happens when the content in an element box extends past ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.