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/animation-delay/index.md
--- title: animation-delay slug: Web/CSS/animation-delay page-type: css-property browser-compat: css.properties.animation-delay --- {{CSSRef}} The **`animation-delay`** [CSS](/en-US/docs/Web/CSS) property specifies the amount of time to wait from applying the animation to an element before beginning to perform the an...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/flex-basis/index.md
--- title: flex-basis slug: Web/CSS/flex-basis page-type: css-property browser-compat: css.properties.flex-basis --- {{CSSRef}} The **`flex-basis`** [CSS](/en-US/docs/Web/CSS) property sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with {{Cssxref("box-sizing")}}. ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/background-position-y/index.md
--- title: background-position-y slug: Web/CSS/background-position-y page-type: css-property browser-compat: css.properties.background-position-y --- {{CSSRef}} The **`background-position-y`** [CSS](/en-US/docs/Web/CSS) property sets the initial vertical position for each background image. The position is relative to...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/column-rule-style/index.md
--- title: column-rule-style slug: Web/CSS/column-rule-style page-type: css-property browser-compat: css.properties.column-rule-style --- {{CSSRef}} The **`column-rule-style`** [CSS](/en-US/docs/Web/CSS) property sets the style of the line drawn between columns in a multi-column layout. {{EmbedInteractiveExample("pa...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_popover-open/index.md
--- title: ":popover-open" slug: Web/CSS/:popover-open page-type: css-pseudo-class browser-compat: css.selectors.popover-open --- {{CSSRef}} The **`:popover-open`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents a {{domxref("Popover API", "popover", "", "nocode")}} element (i...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/text-emphasis-style/index.md
--- title: text-emphasis-style slug: Web/CSS/text-emphasis-style page-type: css-property browser-compat: css.properties.text-emphasis-style --- {{CSSRef}} The **`text-emphasis-style`** [CSS](/en-US/docs/Web/CSS) property sets the appearance of emphasis marks. It can also be set, and reset, using the {{cssxref("text-e...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/background-color/index.md
--- title: background-color slug: Web/CSS/background-color page-type: css-property browser-compat: css.properties.background-color --- {{CSSRef}} The **`background-color`** [CSS](/en-US/docs/Web/CSS) property sets the background color of an element. {{EmbedInteractiveExample("pages/css/background-color.html")}} ## ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_doublecolon_view-transition-old/index.md
--- title: "::view-transition-old" slug: Web/CSS/::view-transition-old page-type: css-pseudo-element status: - experimental browser-compat: css.selectors.view-transition-old --- {{CSSRef}}{{SeeCompatTable}} The **`::view-transition-old`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elemen...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/transform-origin/index.md
--- title: transform-origin slug: Web/CSS/transform-origin page-type: css-property browser-compat: css.properties.transform-origin --- {{CSSRef}} The **`transform-origin`** [CSS](/en-US/docs/Web/CSS) property sets the origin for an element's transformations. {{EmbedInteractiveExample("pages/css/transform-origin.html...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_picture-in-picture/index.md
--- title: ":picture-in-picture" slug: Web/CSS/:picture-in-picture page-type: css-pseudo-class browser-compat: css.selectors.picture-in-picture --- {{CSSRef}} The **`:picture-in-picture`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches the element which is currently in picture-i...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/background-position-x/index.md
--- title: background-position-x slug: Web/CSS/background-position-x page-type: css-property browser-compat: css.properties.background-position-x --- {{CSSRef}} The **`background-position-x`** [CSS](/en-US/docs/Web/CSS) property sets the initial horizontal position for each background image. The position is relative ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_colors/index.md
--- title: CSS colors slug: Web/CSS/CSS_colors page-type: css-module spec-urls: - https://drafts.csswg.org/css-color/ - https://drafts.csswg.org/css-color-5/ --- {{CSSRef}} The **CSS colors** module defines colors, color types, color blending, opacity, and how you can apply these colors and effects to HTML conten...
0
data/mdn-content/files/en-us/web/css/css_colors
data/mdn-content/files/en-us/web/css/css_colors/applying_color/index.md
--- title: Applying color to HTML elements using CSS slug: Web/CSS/CSS_colors/Applying_color page-type: guide --- {{CSSRef}} This article is a primer introducing each of the ways CSS color can be used in HTML. The use of color is a fundamental form of human expression. Children experiment with color before they even...
0
data/mdn-content/files/en-us/web/css/css_colors
data/mdn-content/files/en-us/web/css/css_colors/color_picker_tool/index.md
--- title: Color picker tool slug: Web/CSS/CSS_colors/Color_picker_tool page-type: guide --- {{CSSRef}} This tool makes it easy to create, adjust, and experiment with custom colors for the web. It also makes it easy to convert between various [color formats](/en-US/docs/Web/CSS/color_value) supported by [CSS](/en-US/...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_any-link/index.md
--- title: ":any-link" slug: Web/CSS/:any-link page-type: css-pseudo-class browser-compat: css.selectors.any-link --- {{CSSRef}} The **`:any-link`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) selector represents an element that acts as the source anchor of a hyperlink, independent o...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/element/index.md
--- title: element() slug: Web/CSS/element page-type: css-function status: - experimental browser-compat: css.types.image.element --- {{CSSRef}}{{SeeCompatTable}} The **`element()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) defines an {{cssxref("<image>")}} value generated from...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/math-style/index.md
--- title: math-style slug: Web/CSS/math-style page-type: css-property browser-compat: css.properties.math-style --- {{CSSRef}} The `math-style` property indicates whether MathML equations should render with normal or compact height. ## Syntax ```css /* Keyword values */ math-style: normal; math-style: compact; /*...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/integer/index.md
--- title: <integer> slug: Web/CSS/integer page-type: css-type browser-compat: css.types.integer --- {{CSSRef}} The **`<integer>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) is a special type of {{cssxref("number")}} that represents a positive or negative whole number. Integers can be used...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/margin-left/index.md
--- title: margin-left slug: Web/CSS/margin-left page-type: css-property browser-compat: css.properties.margin-left --- {{CSSRef}} The **`margin-left`** [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 left side of an el...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/hyphens/index.md
--- title: hyphens slug: Web/CSS/hyphens page-type: css-property browser-compat: css.properties.hyphens --- {{CSSRef}} The **`hyphens`** [CSS](/en-US/docs/Web/CSS) property specifies how words should be hyphenated when text wraps across multiple lines. It can prevent hyphenation entirely, hyphenate at manually-specif...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/overscroll-behavior-x/index.md
--- title: overscroll-behavior-x slug: Web/CSS/overscroll-behavior-x page-type: css-property browser-compat: css.properties.overscroll-behavior-x --- {{CSSRef}} The **`overscroll-behavior-x`** CSS property sets the browser's behavior when the horizontal boundary of a scrolling area is reached. See {{cssxref("overscr...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/counter-increment/index.md
--- title: counter-increment slug: Web/CSS/counter-increment page-type: css-property browser-compat: css.properties.counter-increment --- {{CSSRef}} The **`counter-increment`** [CSS](/en-US/docs/Web/CSS) property can be used to increase or decrease the value of the named [CSS counters](/en-US/docs/Web/CSS/CSS_counter...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/grid-area/index.md
--- title: grid-area slug: Web/CSS/grid-area page-type: css-shorthand-property browser-compat: css.properties.grid-area --- {{CSSRef}} The **`grid-area`** CSS [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) specifies a grid item's size and location within a {{glossary("grid", "grid")}} by contributing ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/actual_value/index.md
--- title: Actual value slug: Web/CSS/actual_value page-type: guide spec-urls: https://www.w3.org/TR/CSS22/cascade.html#actual-value --- {{CSSRef}} The **actual value** of a [CSS](/en-US/docs/Web/CSS) property is the [used value](/en-US/docs/Web/CSS/used_value) of that property after any necessary approximations have...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/length/index.md
--- title: <length> slug: Web/CSS/length page-type: css-type browser-compat: css.types.length --- {{CSSRef}} The **`<length>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) represents a distance value. Lengths can be used in numerous CSS properties, such as {{Cssxref("width")}}, {{Cssxref("he...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_containment/index.md
--- title: CSS containment slug: Web/CSS/CSS_containment page-type: css-module spec-urls: - https://drafts.csswg.org/css-contain-2/ - https://drafts.csswg.org/css-contain-3/ --- {{CSSRef}} The **CSS containment** module defines containment and container queries. Containment enables the isolation of page subtrees...
0
data/mdn-content/files/en-us/web/css/css_containment
data/mdn-content/files/en-us/web/css/css_containment/using_css_containment/index.md
--- title: Using CSS containment slug: Web/CSS/CSS_containment/Using_CSS_containment page-type: guide --- {{CSSRef}} CSS containment improves the performance of web pages by allowing the browser to isolate a subtree of the page from the rest of the page. If the browser knows that a part of the page is independent fro...
0
data/mdn-content/files/en-us/web/css/css_containment
data/mdn-content/files/en-us/web/css/css_containment/container_size_and_style_queries/index.md
--- title: Using container size and style queries slug: Web/CSS/CSS_containment/Container_size_and_style_queries page-type: guide browser-compat: css.at-rules.container --- {{CSSRef}}{{SeeCompatTable}} [Container queries](/en-US/docs/Web/CSS/CSS_containment/Container_queries) enable you to apply styles to elements ne...
0
data/mdn-content/files/en-us/web/css/css_containment
data/mdn-content/files/en-us/web/css/css_containment/container_queries/index.md
--- title: CSS container queries slug: Web/CSS/CSS_containment/Container_queries page-type: guide --- {{CSSRef}} Container queries enable you to apply styles to an element based on the size of the element's container. If, for example, a container has less space available in the surrounding context, you can hide certa...
0
data/mdn-content/files/en-us/web/css/css_containment
data/mdn-content/files/en-us/web/css/css_containment/container_queries/container-query.svg
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" clip-rule="evenodd" viewBox="0 0 1125.49 595.35"> <clipPath id="a"> <path d="M0 0h1125.49v595.35H0z"/> </clipPath> <g clip-path="url(#a)"> <path fill="#fff" d="M22.788 14.175H...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_doublecolon_view-transition-new/index.md
--- title: "::view-transition-new" slug: Web/CSS/::view-transition-new page-type: css-pseudo-element status: - experimental browser-compat: css.selectors.view-transition-new --- {{CSSRef}}{{SeeCompatTable}} The **`::view-transition-new`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elemen...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/gradient/index.md
--- title: <gradient> slug: Web/CSS/gradient page-type: css-type browser-compat: css.types.image.gradient --- {{CSSRef}} The **`<gradient>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) is a special type of {{cssxref("&lt;image&gt;")}} that consists of a progressive transition between two or...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/conic-gradient/index.md
--- title: conic-gradient() slug: Web/CSS/gradient/conic-gradient page-type: css-function browser-compat: css.types.image.gradient.conic-gradient --- {{CSSRef}} The **`conic-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an image consisting of a gradient with color tran...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/linear-gradient/index.md
--- title: linear-gradient() slug: Web/CSS/gradient/linear-gradient page-type: css-function browser-compat: css.types.image.gradient.linear-gradient --- {{CSSRef}} The **`linear-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an image consisting of a progressive transiti...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/repeating-linear-gradient/index.md
--- title: repeating-linear-gradient() slug: Web/CSS/gradient/repeating-linear-gradient page-type: css-function browser-compat: css.types.image.gradient.repeating-linear-gradient --- {{CSSRef}} The **`repeating-linear-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an im...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/repeating-radial-gradient/index.md
--- title: repeating-radial-gradient() slug: Web/CSS/gradient/repeating-radial-gradient page-type: css-function browser-compat: css.types.image.gradient.repeating-radial-gradient --- {{CSSRef}} The **`repeating-radial-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an im...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/repeating-conic-gradient/index.md
--- title: repeating-conic-gradient() slug: Web/CSS/gradient/repeating-conic-gradient page-type: css-function browser-compat: css.types.image.gradient.repeating-conic-gradient --- {{CSSRef}} The **`repeating-conic-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an image ...
0
data/mdn-content/files/en-us/web/css/gradient
data/mdn-content/files/en-us/web/css/gradient/radial-gradient/index.md
--- title: radial-gradient() slug: Web/CSS/gradient/radial-gradient page-type: css-function browser-compat: css.types.image.gradient.radial-gradient --- {{CSSRef}} The **`radial-gradient()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) creates an image consisting of a progressive transiti...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_volume-locked/index.md
--- title: ":volume-locked" slug: Web/CSS/:volume-locked page-type: css-pseudo-class browser-compat: css.selectors.volume-locked --- {{CSSRef}} The **`:volume-locked`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) selector represents an element that is capable of making sound, such as...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/mask-composite/index.md
--- title: mask-composite slug: Web/CSS/mask-composite page-type: css-property browser-compat: css.properties.mask-composite --- {{CSSRef}} The **`mask-composite`** [CSS](/en-US/docs/Web/CSS) property represents a compositing operation used on the current mask layer with the mask layers below it. ## Syntax ```css /...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/scroll-padding-inline/index.md
--- title: scroll-padding-inline slug: Web/CSS/scroll-padding-inline page-type: css-shorthand-property browser-compat: css.properties.scroll-padding-inline --- {{CSSRef}} The `scroll-padding-inline` [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets the scroll padding of an element in the inline dime...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/-webkit-text-security/index.md
--- title: "-webkit-text-security" slug: Web/CSS/-webkit-text-security page-type: css-property status: - non-standard browser-compat: css.properties.-webkit-text-security --- {{CSSRef}}{{Non-standard_Header}} **`-webkit-text-security`** is a non-standard CSS property that obfuscates characters in a {{HtmlElement("f...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/min-block-size/index.md
--- title: min-block-size slug: Web/CSS/min-block-size page-type: css-property browser-compat: css.properties.min-block-size --- {{CSSRef}} The **`min-block-size`** [CSS](/en-US/docs/Web/CSS) property defines the minimum horizontal or vertical size of an element's block, depending on its writing mode. It corresponds ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/justify-tracks/index.md
--- title: justify-tracks slug: Web/CSS/justify-tracks page-type: css-property status: - experimental browser-compat: css.properties.justify-tracks --- {{CSSRef}}{{SeeCompatTable}} The **`justify-tracks`** CSS property sets the alignment in the masonry axis for grid containers that have [masonry](/en-US/docs/Web/CS...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/text-decoration-color/index.md
--- title: text-decoration-color slug: Web/CSS/text-decoration-color page-type: css-property browser-compat: css.properties.text-decoration-color --- {{CSSRef}} The **`text-decoration-color`** [CSS](/en-US/docs/Web/CSS) property sets the color of decorations added to text by {{ cssxref("text-decoration-line") }}. Th...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/scroll-margin-right/index.md
--- title: scroll-margin-right slug: Web/CSS/scroll-margin-right page-type: css-property browser-compat: css.properties.scroll-margin-right --- {{CSSRef}} The `scroll-margin-right` property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is det...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_grid_layout/index.md
--- title: CSS grid layout slug: Web/CSS/CSS_grid_layout page-type: css-module spec-urls: https://drafts.csswg.org/css-grid/ --- {{CSSRef}} The **CSS grid layout** module excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built f...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/box_alignment_in_grid_layout/index.md
--- title: Box alignment in grid layout slug: Web/CSS/CSS_grid_layout/Box_alignment_in_grid_layout page-type: guide --- {{CSSRef}} CSS Grid Layout implements the specification [Box Alignment Level 3](https://drafts.csswg.org/css-align/) which is the same standard [flexbox](/en-US/docs/Web/CSS/CSS_flexible_box_layout)...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grid_template_areas/index.md
--- title: Grid template areas slug: Web/CSS/CSS_grid_layout/Grid_template_areas page-type: guide --- {{CSSRef}} In the [previous guide](/en-US/docs/Web/CSS/CSS_grid_layout/Grid_layout_using_line-based_placement), we looked at grid lines and how to position items against those lines. When you use CSS grid layout, you...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/masonry_layout/index.md
--- title: Masonry layout slug: Web/CSS/CSS_grid_layout/Masonry_layout page-type: guide status: - experimental browser-compat: - css.properties.grid-template-columns.masonry - css.properties.grid-template-rows.masonry --- {{CSSRef}} {{SeeCompatTable}} Level 3 of the [CSS grid layout](/en-US/docs/Web/CSS/CSS_gri...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/auto-placement_in_grid_layout/index.md
--- title: Auto-placement in grid layout slug: Web/CSS/CSS_grid_layout/Auto-placement_in_grid_layout page-type: guide --- {{CSSRef}} In addition to the ability to place items accurately onto a created grid, the CSS Grid Layout specification contains rules that control what happens when you create a grid and do not pl...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grid_layout_and_accessibility/index.md
--- title: Grid layout and accessibility slug: Web/CSS/CSS_grid_layout/Grid_layout_and_accessibility page-type: guide --- {{CSSRef}} Those of us who have been doing web development for more years than we care to remember might consider that CSS Grid is a little bit like using "tables for layout". Back in the early da...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/basic_concepts_of_grid_layout/index.md
--- title: Basic concepts of grid layout slug: Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout page-type: guide --- {{CSSRef}} [CSS grid layout](/en-US/docs/Web/CSS/CSS_grid_layout) introduces a two-dimensional grid system to CSS. Grids can be used to lay out major page areas or small user interface elements. T...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grid_layout_and_progressive_enhancement/index.md
--- title: CSS Grid Layout and progressive enhancement slug: Web/CSS/CSS_grid_layout/Grid_layout_and_progressive_enhancement page-type: guide --- {{CSSRef}} In Spring of 2017, we saw for the first time a major specification like Grid being shipped into browsers almost simultaneously, and we now have CSS Grid Layout s...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grid_layout_using_line-based_placement/index.md
--- title: Grid layout using line-based placement slug: Web/CSS/CSS_grid_layout/Grid_layout_using_line-based_placement page-type: guide --- {{CSSRef}} In the [article covering the basic concepts of grid layout](/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout), we started to look at how to position i...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/subgrid/index.md
--- title: Subgrid slug: Web/CSS/CSS_grid_layout/Subgrid page-type: guide browser-compat: css.properties.grid-template-columns.subgrid --- {{CSSRef}} Level 2 of the CSS Grid Layout specification includes a `subgrid` value for {{cssxref("grid-template-columns")}} and {{cssxref("grid-template-rows")}}. This guide detai...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grids_logical_values_and_writing_modes/index.md
--- title: Grids, logical values, and writing modes slug: Web/CSS/CSS_grid_layout/Grids_logical_values_and_writing_modes page-type: guide --- {{CSSRef}} In these guides, I have already touched on an important feature of grid layout: the support for different writing modes that is built into the specification. For thi...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/grid_layout_using_named_grid_lines/index.md
--- title: Layout using named grid lines slug: Web/CSS/CSS_grid_layout/Grid_layout_using_named_grid_lines page-type: guide --- {{CSSRef}} In previous guides, we've looked at placing items by the lines created by defining grid tracks and also how to place items using named template areas. In this guide, we are going t...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/realizing_common_layouts_using_grids/index.md
--- title: Realizing common layouts using grids slug: Web/CSS/CSS_grid_layout/Realizing_common_layouts_using_grids page-type: guide --- {{CSSRef}} To round off this set of guides to CSS Grid Layout, we're going to walk through a few different layouts, which demonstrate some of the different techniques you can use whe...
0
data/mdn-content/files/en-us/web/css/css_grid_layout
data/mdn-content/files/en-us/web/css/css_grid_layout/relationship_of_grid_layout_with_other_layout_methods/index.md
--- title: Relationship of grid layout to other layout methods slug: Web/CSS/CSS_grid_layout/Relationship_of_grid_layout_with_other_layout_methods page-type: guide --- {{CSSRef}} CSS Grid Layout has been designed to work alongside other parts of CSS, as part of a complete system for doing the layout. In this guide, I...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_only-of-type/index.md
--- title: ":only-of-type" slug: Web/CSS/:only-of-type page-type: css-pseudo-class browser-compat: css.selectors.only-of-type --- {{CSSRef}} The **`:only-of-type`** CSS [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents an element that has no siblings of the same type. {{EmbedInteractiveExample("pages/tab...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_doublecolon_target-text/index.md
--- title: "::target-text" slug: Web/CSS/::target-text page-type: css-pseudo-element status: - experimental browser-compat: css.selectors.target-text --- {{CSSRef}}{{SeeCompatTable}} The **`::target-text`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements) represents the text that has...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/max-height/index.md
--- title: max-height slug: Web/CSS/max-height page-type: css-property browser-compat: css.properties.max-height --- {{CSSRef}} The **`max-height`** [CSS](/en-US/docs/Web/CSS) property sets the maximum 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/border-left-color/index.md
--- title: border-left-color slug: Web/CSS/border-left-color page-type: css-property browser-compat: css.properties.border-left-color --- {{CSSRef}} The **`border-left-color`** CSS property sets the color of an element's left [border](/en-US/docs/Web/CSS/border). It can also be set with the shorthand CSS properties {...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/scroll-snap-type/index.md
--- title: scroll-snap-type slug: Web/CSS/scroll-snap-type page-type: css-property browser-compat: css.properties.scroll-snap-type --- {{CSSRef}} The **`scroll-snap-type`** [CSS](/en-US/docs/Web/CSS) property sets how strictly snap points are enforced on the scroll container in case there is one. {{EmbedInteractiveE...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_doublecolon_-webkit-meter-bar/index.md
--- title: "::-webkit-meter-bar" slug: Web/CSS/::-webkit-meter-bar page-type: css-pseudo-element status: - non-standard browser-compat: css.selectors.-webkit-meter-bar --- {{CSSRef}}{{Non-standard_header}} The **`::-webkit-meter-bar`** [CSS](/en-US/docs/Web/CSS) [pseudo-element](/en-US/docs/Glossary/Pseudo-element)...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_nth-last-of-type/index.md
--- title: ":nth-last-of-type()" slug: Web/CSS/:nth-last-of-type page-type: css-pseudo-class browser-compat: css.selectors.nth-last-of-type --- {{CSSRef}} The **`:nth-last-of-type()`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) matches elements based on their position among siblings...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/font-family/index.md
--- title: font-family slug: Web/CSS/font-family page-type: css-property browser-compat: css.properties.font-family --- {{CSSRef}} The **`font-family`** CSS property specifies a prioritized list of one or more font family names and/or generic family names for the selected element. {{EmbedInteractiveExample("pages/cs...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/box-orient/index.md
--- title: box-orient slug: Web/CSS/box-orient page-type: css-property status: - deprecated - non-standard browser-compat: css.properties.box-orient --- {{CSSRef}}{{Non-standard_header}}{{Deprecated_Header}} > **Warning:** This is a property of the original CSS Flexible Box Layout Module draft, and has been repla...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/comments/index.md
--- title: Comments slug: Web/CSS/Comments page-type: guide --- {{CSSRef}} A CSS **comment** is used to add explanatory notes to the code or to prevent the browser from interpreting specific parts of the style sheet. By design, comments have no effect on the layout of a document. ## Syntax Comments can be placed wh...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/border-block-color/index.md
--- title: border-block-color slug: Web/CSS/border-block-color page-type: css-property browser-compat: css.properties.border-block-color --- {{CSSRef}} The **`border-block-color`** [CSS](/en-US/docs/Web/CSS) property defines the color of the logical block borders of an element, which maps to a physical border color d...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/at-rule-functions/index.md
--- title: CSS at-rule functions slug: Web/CSS/At-rule-functions page-type: guide --- {{CSSRef}} **[CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CSS/At-rule) functions** are at-rule statements that represent complex rules or can invoke special data processing or calculations. ## Syntax ```css @identifier fun...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_transforms/index.md
--- title: CSS transforms slug: Web/CSS/CSS_transforms page-type: css-module spec-urls: - https://drafts.csswg.org/css-transforms/ - https://drafts.csswg.org/css-transforms-2/ --- {{CSSRef}} The **CSS transforms** module defines how elements styled with CSS can be transformed in two-dimensional or three-dimension...
0
data/mdn-content/files/en-us/web/css/css_transforms
data/mdn-content/files/en-us/web/css/css_transforms/using_css_transforms/index.md
--- title: Using CSS transforms slug: Web/CSS/CSS_transforms/Using_CSS_transforms page-type: guide --- {{CSSRef}} By modifying the coordinate space, **CSS transforms** change the shape and position of the affected content without disrupting the normal document flow. This guide provides an introduction to using transf...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/counter/index.md
--- title: counter() slug: Web/CSS/counter page-type: css-function browser-compat: css.types.counter --- {{CSSRef}} The **`counter()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) returns a string representing the current value of the named counter, if there is one. The `counter()` funct...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/contain-intrinsic-inline-size/index.md
--- title: contain-intrinsic-inline-size slug: Web/CSS/contain-intrinsic-inline-size page-type: css-property browser-compat: css.properties.contain-intrinsic-inline-size --- {{CSSRef}} The **`contain-intrinsic-inline-size`** [CSS](/en-US/docs/Web/CSS) [logical property](/en-US/docs/Web/CSS/CSS_logical_properties_and_...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/flex_value/index.md
--- title: <flex> slug: Web/CSS/flex_value page-type: css-type browser-compat: css.types.flex --- {{CSSRef}} The **`<flex>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) denotes a flexible length within a grid container. It is used in {{cssxref("grid-template-columns")}}, {{cssxref("grid-tem...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/_colon_indeterminate/index.md
--- title: ":indeterminate" slug: Web/CSS/:indeterminate page-type: css-pseudo-class browser-compat: css.selectors.indeterminate --- {{CSSRef}} The **`:indeterminate`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) represents any form element whose state is indeterminate, such as check...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/mask-image/index.md
--- title: mask-image slug: Web/CSS/mask-image page-type: css-property browser-compat: css.properties.mask-image --- {{CSSRef}} The **`mask-image`** [CSS](/en-US/docs/Web/CSS) property sets the image that is used as mask layer for an element. By default this means the alpha channel of the mask image will be multiplie...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/color_value/index.md
--- title: <color> slug: Web/CSS/color_value page-type: css-type browser-compat: css.types.color --- {{CSSRef}} The **`<color>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_Types) represents a color. A `<color>` may also include an [alpha-channel](https://en.wikipedia.org/wiki/Alpha_compositing) _...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/color/index.md
--- title: color() slug: Web/CSS/color_value/color page-type: css-function browser-compat: css.types.color.color --- {{CSSRef}} The **`color()`** functional notation allows a color to be specified in a particular, specified colorspace rather than the implicit sRGB colorspace that most of the other color functions ope...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/lab/index.md
--- title: lab() slug: Web/CSS/color_value/lab page-type: css-function browser-compat: css.types.color.lab --- {{CSSRef}} The **`lab()`** functional notation expresses a given color in the CIE L\*a\*b\* color space. Lab represents the entire range of color that humans can see. ## Syntax ```css lab(29.2345% 39.3825 ...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/rgb/index.md
--- title: rgb() slug: Web/CSS/color_value/rgb page-type: css-function browser-compat: css.types.color.rgb --- {{CSSRef}} The **`rgb()`** functional notation expresses a color according to its red, green, and blue components. An optional alpha component represents the color's transparency. > **Note:** The legacy `rg...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/oklch/index.md
--- title: oklch() slug: Web/CSS/color_value/oklch page-type: css-function browser-compat: css.types.color.oklch --- {{CSSRef}} The **`oklch()`** functional notation expresses a given color in the Oklch color space. It has the same L axis as {{cssxref("color_value/oklab","oklab()")}}, but uses polar coordinates C (Ch...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/hwb/index.md
--- title: hwb() slug: Web/CSS/color_value/hwb page-type: css-function browser-compat: css.types.color.hwb --- {{CSSRef}} The **`hwb()`** functional notation expresses an {{glossary("RGB", "sRGB")}} color according to its hue, whiteness, and blackness. An optional alpha component represents the color's transparency. ...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/oklab/index.md
--- title: oklab() slug: Web/CSS/color_value/oklab page-type: css-function browser-compat: css.types.color.oklab --- {{CSSRef}} The **`oklab()`** functional notation expresses a given color in the Oklab color space, which attempts to mimic how color is perceived by the human eye. The `oklab()` works with a Cartesian ...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/lch/index.md
--- title: lch() slug: Web/CSS/color_value/lch page-type: css-function browser-compat: css.types.color.lch --- {{CSSRef}} The **`lch()`** functional notation expresses a given color in the LCH color space. It has the same L axis as {{cssxref("color_value/lab","lab()")}}, but uses polar coordinates C (Chroma) and H (H...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/light-dark/index.md
--- title: light-dark() slug: Web/CSS/color_value/light-dark page-type: css-function browser-compat: css.types.color.light-dark --- {{CSSRef}} The **`light-dark()`** [CSS](/en-US/docs/Web/CSS) [`<color>` function](/en-US/docs/Web/CSS/CSS_Functions#color_functions) enables setting two colors for a property - returning...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/device-cmyk/index.md
--- title: device-cmyk() slug: Web/CSS/color_value/device-cmyk page-type: css-function browser-compat: css.types.color.device-cmyk spec-urls: https://drafts.csswg.org/css-color-5/#device-cmyk --- {{CSSRef}} The **`device-cmyk()`** functional notation is used to express CMYK colors in a device dependent way, specifyin...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/color-contrast/index.md
--- title: color-contrast() slug: Web/CSS/color_value/color-contrast page-type: css-function status: - experimental browser-compat: css.types.color.color-contrast --- {{CSSRef}}{{SeeCompatTable}} The **`color-contrast()`** functional notation takes a {{cssxref("color_value","color")}} value and compares it to a lis...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/color-mix/index.md
--- title: color-mix() slug: Web/CSS/color_value/color-mix page-type: css-function browser-compat: css.types.color.color-mix --- {{CSSRef}} The **`color-mix()`** functional notation takes two {{cssxref("&lt;color&gt;")}} values and returns the result of mixing them in a given colorspace by a given amount. ## Syntax ...
0
data/mdn-content/files/en-us/web/css/color_value
data/mdn-content/files/en-us/web/css/color_value/hsl/index.md
--- title: hsl() slug: Web/CSS/color_value/hsl page-type: css-function browser-compat: css.types.color.hsl --- {{CSSRef}} The **`hsl()`** functional notation expresses an {{glossary("RGB", "sRGB")}} color according to its _hue_, _saturation_, and _lightness_ components. An optional _alpha_ component represents the co...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/log/index.md
--- title: log() slug: Web/CSS/log page-type: css-function browser-compat: css.types.log --- {{CSSRef}} The **`log()`** [CSS](/en-US/docs/Web/CSS) [function](/en-US/docs/Web/CSS/CSS_Functions) is an exponential function that returns the logarithm of a number. [Logarithm](https://en.wikipedia.org/wiki/Logarithm) is t...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/padding-block-end/index.md
--- title: padding-block-end slug: Web/CSS/padding-block-end page-type: css-property browser-compat: css.properties.padding-block-end --- {{CSSRef}} The **`padding-block-end`** [CSS](/en-US/docs/Web/CSS) property defines the logical block end padding of an element, which maps to a physical padding depending on the el...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_compositing_and_blending/index.md
--- title: CSS compositing and blending slug: Web/CSS/CSS_compositing_and_blending page-type: css-module spec-urls: - https://drafts.fxtf.org/compositing/ - https://www.w3.org/TR/compositing-1/ --- {{CSSRef}} The **CSS compositing and blending** module defines how an element's background layers can be blended tog...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/scroll-padding-top/index.md
--- title: scroll-padding-top slug: Web/CSS/scroll-padding-top page-type: css-property browser-compat: css.properties.scroll-padding-top --- {{CSSRef}} The **`scroll-padding-top`** property defines offsets for the top of the _optimal viewing region_ of the scrollport: the region used as the target region for placing ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/inset/index.md
--- title: inset slug: Web/CSS/inset page-type: css-shorthand-property browser-compat: css.properties.inset --- {{CSSRef}} The **`inset`** [CSS](/en-US/docs/Web/CSS) property is a shorthand that corresponds to the {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, and/or {{cssxref("left")}} properties. ...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/css_scroll_snap/index.md
--- title: CSS scroll snap slug: Web/CSS/CSS_scroll_snap page-type: css-module spec-urls: https://drafts.csswg.org/css-scroll-snap/ --- {{CSSRef}} The **CSS scroll snap** module provides properties that let you control the panning and scrolling behavior by defining snap positions. Content can be snapped into position...
0
data/mdn-content/files/en-us/web/css/css_scroll_snap
data/mdn-content/files/en-us/web/css/css_scroll_snap/basic_concepts/index.md
--- title: Basic concepts of scroll snap slug: Web/CSS/CSS_scroll_snap/Basic_concepts page-type: guide --- {{CSSRef}} The properties in the [CSS scroll snap](/en-US/docs/Web/CSS/CSS_scroll_snap) module enable you to define how scrolling snaps to specific points as a user scrolls through a document. The scroll snap f...
0
data/mdn-content/files/en-us/web/css
data/mdn-content/files/en-us/web/css/order/index.md
--- title: order slug: Web/CSS/order page-type: css-property browser-compat: css.properties.order --- {{CSSRef}} The **`order`** [CSS](/en-US/docs/Web/CSS) property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending `order` value and then by their source code o...
0