Articles by

Geoff Graham

Read, write, coffee, web, repeat.

Direct link to the article ::details-content

::details-content

The CSS ::details-content pseudo-element provides a way to select and apply styles to the inner parts of a <details> element without leaking styles to the <summary>.

details::details-content {
  background-color: hsl(0 0% 0%);
}
Syntax
<element-selector::details-content {}

We say …

Direct link to the article anchor-name

anchor-name

Declaring the CSS anchor-name property on an element registers it as an “anchor” that we can use to position as a reference for positioning other elements.

.anchor {
  anchor-name: --my-anchor;
}

The property is one part of CSS Anchor Positioning, …

(Updated on )