Container Type
Set the type of containment used for a container query.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
ct-iscontainer-type: inline-size;ct-nonecontainer-type: none;ct-scontainer-type: size;Responsiveness
Target viewport sizes with breakpoint prefixes.
sm:ct-(value)Small≥640px
md:ct-(value)Medium≥768px
lg:ct-(value)Large≥1024px
xxl:ct-(value)Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:ct-(value)